Mantis - Resin
Viewing Issue Advanced Details
1110 minor always 05-14-06 11:42 06-28-06 12:00
anonymous  
ferg  
normal  
closed 3.0.18  
fixed  
none    
none 3.0.20  
0001110: can not load interntional properties file
failed reason is arg passed to loader.getResourceAsStream can not start with '/':

com.caucho.jsp.BundleManager.getBaseBundle(String name) in resin.jar
line 214:
InputStream is = loader.getResourceAsStream('/' + name.replace('.', '/') + ".properties");
//shouldbe loader.getResourceAsStream(name.replace('.', '/') + ".properties");


assume the code:
    InputStream is = SomeLoader.getResourceAsStream("/java/lang/Object.class");
    System.out.println(is); // print result is null

    InputStream is = SomeLoader.getResourceAsStream("java/lang/Object.class");
    System.out.println(is); // print result is correct

Notes
(0001346)
ferg   
06-28-06 12:00   
jsp/1c3w