From: Michael T. <mt...@bb...> - 2008-06-16 20:30:08
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> </head> <body bgcolor="#ffffff" text="#000000"> Java 6 introduced a regression in the syntax allowed by ClassLoader.loadClass, no longer accepting Array syntax. This breaks all uses of jscheme methods defined using Foo[] syntax.<br> <br> Here's a patch for jscheme 7.2:<br> --- src/jsint/Import.java.orig 2008-06-16 16:15:56.000000000 -0400<br> +++ src/jsint/Import.java 2008-06-16 16:16:26.000000000 -0400<br> @@ -173,7 +173,7 @@<br> try { return Class.forName(name);}<br> catch (ClassNotFoundException e) { return null;}<br> else<br> - try { return loader.loadClass(name); }<br> + try { return Class.forName(name, false, loader); }<br> catch (ClassNotFoundException e) { return null; }<br> // KRA 28JUN00: Renu found this! <br> catch (NoClassDefFoundError e) { return null; } <br> <br> <div class="moz-signature">-- <br> <table cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr> <td> <font color="#808080" size="2"><b>Michael Thome</b></font><br> <font color="#8f8fff" size="2">BBN Technologies</font> <font color="#808080" size="2">10 Moulton St, Cambridge MA 02138 USA</font><br> <font color="#808080" size="2">phone: +1 617 873 1853</font><br> </td> </tr> </tbody> </table> </div> </body> </html> |