harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Serguei Zapreyev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-1654) [drlvm][kernel] Pair of issues in j.l.Class, j.l.ClassLoader implementations
Date Mon, 02 Oct 2006 11:25:20 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1654?page=all ]

Serguei Zapreyev updated HARMONY-1654:
--------------------------------------

    Attachment: Test1.java
                Test2.java

The all test cases of Test1 and Test2 tests pass after the fix.

However, Test2 seems to demonstrate some other issue to be investigated
by somebody, please look at the NullPointerException in the log of Test2:

szapreye@nstdrlel16:~> /nfs/ins/proj/drl/coreapi/ZSS/G57/trunk/working_vm/build/lnx_ia32_gcc_debug/deploy/jre/bin/java
-classpath /nfs/ins/proj/drl/coreapi/ZSS/my_tests Test1
test_class_getResource passed
test_class_getResourceAsStream passed
test_classloader_getResource_Str passed
test_classloader_getResources_Str passed
test_classloader_getResourceAsStream_Str passed
test_classloader_getSystemResource_Str passed
test_class_getResource passed
test_classloader_getSystemResources_Str passed
test_classloader_findResource_Str passed
test_classloader_findResources_Str passed
szapreye@nstdrlel16:~> /nfs/ins/proj/drl/coreapi/ZSS/G57/trunk/working_vm/build/lnx_ia32_gcc_debug/deploy/jre/bin/java
-classpath /nfs/ins/proj/drl/coreapi/ZSS/my_tests Test2
Test case #1 passed
java.lang.NullPointerException
        at com.ibm.icu.lang.UCharacter.getProperty(UCharacter.java:6073)
        at com.ibm.icu.lang.UCharacter.getType(UCharacter.java:2974)
        at com.ibm.icu.lang.UCharacter.isWhitespace(UCharacter.java:3162)
        at java.lang.Character.isWhitespace(Character.java:3091)
        at java.lang.Character.isWhitespace(Character.java:3076)
        at java.util.Properties.load(Properties.java:374)
        at java.util.PropertyResourceBundle.<init>(PropertyResourceBundle.java:43)
        at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:286)
        at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:307)
        at java.util.ResourceBundle.handleGetBundle(ResourceBundle.java:307)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:132)
        at org.apache.harmony.luni.util.MsgHelp$1.run(MsgHelp.java:112)
        at java.security.AccessController.doPrivilegedImpl(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at org.apache.harmony.luni.util.MsgHelp.setLocale(MsgHelp.java:109)
        at org.apache.harmony.luni.util.Msg.<clinit>(Msg.java:47)
        at java.util.zip.ZipFile.openZip(ZipFile.java:116)
        at java.util.zip.ZipFile.<init>(ZipFile.java:90)
        at java.util.jar.JarFile.<init>(JarFile.java:170)
        at org.apache.harmony.luni.internal.net.www.protocol.jar.JarURLConnection.openJarFile(JarURLConnection.java:237)
        at org.apache.harmony.luni.internal.net.www.protocol.jar.JarURLConnection.findJarFile(JarURLConnection.java:175)
        at org.apache.harmony.luni.internal.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:142)
        at org.apache.harmony.luni.internal.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:158)
        at java.net.URLClassLoader.findResourceImpl(URLClassLoader.java:711)
        at java.net.URLClassLoader$5.run(URLClassLoader.java:665)
        at java.net.URLClassLoader$5.run(URLClassLoader.java:664)
        at java.security.AccessController.doPrivilegedImpl(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.net.URLClassLoader.findResource(URLClassLoader.java:663)
        at java.lang.ClassLoader$BootstrapLoader.findResource(Unknown Source)
        at java.lang.ClassLoader.getResource(Unknown Source)
        at java.lang.ClassLoader.getResourceAsStream(Unknown Source)
        at java.lang.ClassLoader.getSystemResourceAsStream(Unknown Source)
        at java.lang.Class.getResourceAsStream(Unknown Source)
        at com.ibm.icu.impl.ICUData.getStream(ICUData.java:46)
        at com.ibm.icu.impl.ICUData.getRequiredStream(ICUData.java:97)
        at com.ibm.icu.impl.UPropertyAliases.<init>(UPropertyAliases.java:122)
        at com.ibm.icu.lang.UCharacter.<clinit>(UCharacter.java:5680)
        at java.lang.Character.isWhitespace(Character.java:3091)
        at java.lang.Character.isWhitespace(Character.java:3076)
        at java.util.Properties.load(Properties.java:374)
        at java.security.Security$1.run(Security.java:67)
        at java.security.AccessController.doPrivilegedImpl(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.security.Security.<clinit>(Security.java:57)
        at org.apache.harmony.security.fortress.PolicyUtils$SecurityPropertyAccessor.run(PolicyUtils.java:148)
        at org.apache.harmony.security.fortress.PolicyUtils$SecurityPropertyAccessor.run(PolicyUtils.java:127)
        at java.security.AccessController.doPrivilegedImpl(Unknown Source)
        at java.security.AccessController.doPrivileged(Unknown Source)
        at java.security.Policy.getDefaultProvider(Policy.java:139)
        at java.security.Policy.getAccessiblePolicy(Policy.java:189)
        at java.security.ProtectionDomain.implies(ProtectionDomain.java:158)
        at Test2.main(Test2.java:15)
Test case #2 passed
szapreye@nstdrlel16:~> /nfs/ins/proj/drl/coreapi/ZSS/G57/trunk/working_vm/build/lnx_ia32_gcc

> [drlvm][kernel] Pair of issues in j.l.Class, j.l.ClassLoader implementations
> ----------------------------------------------------------------------------
>
>                 Key: HARMONY-1654
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1654
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Serguei Zapreyev
>            Priority: Minor
>         Attachments: H1654.jlC_CL_impl.patch, Test1.java, Test2.java
>
>
> Pair of defects in j.l.Class, j.l.ClassLoader impls: 
> - Class.getResourceAsStream(null), Class.getResource(null), ClassLoader.getResource(null),

>   ClassLoader.getResourceAsStream(null), ClassLoader.getSystemResource(null),
>   ClassLoader.getSystemResourceAsStream(null) should throw NPE (Test1). 
>   Throwing the NulPointerException as demanded resolves the issue. 
> - According to the ClassLoader.getSystemClassLoader() spec, a "system class loader" serving
for
>   start an application should automatically grant the exitVM permission 
>   to all code loaded from the application class path (Test2). 
>   j.l.ClassLoader$SystemClassLoader should grant it to resolve the issue. 
> I'm going to attach the corresponding patch to fix the issues and the corresponding tests.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message