Message4009

Author otmarhumbel
Recipients alv131, otmarhumbel
Date 2009-01-07.23:22:25
SpamBayes Score 0.013719848
Marked as misclassified No
Message-id <1231370546.66.0.602441165101.issue1208@psf.upfronthosting.co.za>
In-reply-to
Content
http://jython.svn.sourceforge.net/viewvc/jython?view=rev&revision=5867 
fixes the installation part.

But as the attached TESTResource.java demonstrates, java itself has a 
problem delivering Class.getResourceAsStream() from inside a .jar file, 
if this .jar file is below a directory containing an exclamation mark.

Since we are making heavy usage of getResourceAsStream(), this means:
 - installer autotests cannot run
 - jython does not startup if installed into a directory containing a 
'!'

To reproduce the java problem mentioned above:
 - compile TESTResource.java
 - put the class file into test.jar, in package st.extreme.jython
 - add a text file my.resource into the same directory st/extreme/jython 
inside test.jar
 - copy test.jar into a directory containing a '!'
 - run the following java command:
java -classpath test.jar st.extreme.jython.TESTResource
 - and it will complain about a null resource stream
History
Date User Action Args
2009-01-07 23:22:26otmarhumbelsetmessageid: <1231370546.66.0.602441165101.issue1208@psf.upfronthosting.co.za>
2009-01-07 23:22:26otmarhumbelsetrecipients: + otmarhumbel, alv131
2009-01-07 23:22:26otmarhumbellinkissue1208 messages
2009-01-07 23:22:26otmarhumbelcreate