|
From: <php...@li...> - 2007-11-03 17:28:19
|
Hi, I am sorry, but I could not reproduce this problem. Can you please attach a test case to the ticket #1824173 (http://sourceforge.net/tracker/index.php?func=detail&aid=1824173&group_id=117793&atid=679233)? > However, this raised a LinkageException on the JVM, claiming that > Class B already was loaded by the classloader. Yes, that's the expected behaviour when the same class is loaded twice by two different class loaders. > If "$clazz = new JavaClass("org.test.B");" was performed before > "$bean->getA();" everything worked out fine I don't think so. If you compare B@beanClassLoader with B@dynamicJavaBridgeClassLoader, you will see that both classes are assignment incompatible. > something was buggy in the dynamic classloading scheme. There may be a bug in the dynamic class loader. But I fail to see it. > I've attached a patch to the DynamicJavaBridgeClassLoader which > addresses this, by checking findLoadedClass(name) before The patch is incorrect. An attempt to load the same class twice must throw an exception. Otherwise we will get ClassCastExceptions later on. The problem, as I understand it, is, that you load the same class from two different locations. Regards, Jost Boekemeier Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: http://de.yahoo.com/set |