php...@li... wrote:
> Hi,
>
> this sounds like a bug to me.
>
> Presumably java_instanceof() has never been tested with the DynamicClassLoader. Please see
> ticket#1824173
> (=>http://sourceforge.net/tracker/index.php?func=detail&aid=1824173&group_id=117793&atid=679233)
> for details.
>
> I haven't received your attachment, but I think we are able to reproduce this problem.
>
>
> Regards,
> Jost Boekemeier
>
>
>
> __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
>
Ok, I will monitor bug #1824173 then.
In the meantime, here's the small patch I wrote:
--- DynamicJavaBridgeClassLoader.java 2007-09-26 09:51:30.000000000 +0200
+++
php-java-bridge-4.1.8/server/php/java/bridge/DynamicJavaBridgeClassLoader.java
2007-09-26 09:52:26.000000000 +0200
@@ -36,7 +36,6 @@
import java.util.Set;
import java.util.jar.JarFile;
import java.util.jar.Manifest;
-
/**
* The bridge class loader which uses the DynamicClassLoader when
possible.
* @author jostb
@@ -217,12 +216,14 @@
if (c != null)
return (Class) c;
try {
- result = doLoadClass(name);
+ result = findLoadedClass(name);
+ if (result == null)
+ result = doLoadClass(name);
cache.put(name, result);
return result;
} catch (ClassNotFoundException cnfe) {
cache.put(name, nf);
- }
+ }
}
throw new ClassNotFoundException(name);
}
~
Thanks a lot,
P-a Bäckström
|