Inline-Java - Re: Class not found when CLASSPATH option contains '#'

Posted on Mon Feb 11 20:58:10 2008 by patl in response to 7075 (See the whole thread of 4)
Re: Class not found when CLASSPATH option contains '#'
It's a bug in Inline::Java. Here's a quick patch for you:
Index: Java/sources/org/perl/inline/java/InlineJavaUserClassLoader.java =================================================================== RCS file: /cvsroot/inline-java/Inline-Java/Java/sources/org/perl/inline/java/InlineJavaUserClassLoa +der.java,v retrieving revision 1.2 diff -r1.2 InlineJavaUserClassLoader.java 36c36 < URL u = p.toURL() ; --- > URL u = p.toURI().toURL() ;
Basically the code uses a URLClassLoader and the path added is not properly escaped. I'll try and get that fixed in the next release. Patrick
Direct Responses: 7083 | Write a response