harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1622) [drlvm] classloading fails on '/' symbos
Date Mon, 02 Oct 2006 19:58:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1622?page=comments#action_12439301 ] 
            
Geir Magnusson Jr commented on HARMONY-1622:
--------------------------------------------

Sorry - why is #1 JarRunner's fault?  First, w/o the fix, it works on the RI.  Second, I can
see nowhere in the documentation where it's required that we used canonical form for loadClass().
 Sure, in defineClass() it requires it, but shouldn't that be the problem of whoever is calling
defineClass()?


> [drlvm] classloading fails on '/' symbos
> ----------------------------------------
>
>                 Key: HARMONY-1622
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1622
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Geir Magnusson Jr
>            Priority: Minor
>         Attachments: HARMONY-1622.patch
>
>
> The org.apache.harmony.archive.tests.java.util.jar.JarOutputStreamTest of classlib fails
on DRLVM with the following trace:
>     [junit] java/lang/NoClassDefFoundError : The name is expected in binary (canonical)
form, therefore '/' symbols are not allowed: foo/bar/execjartest/MainClass
>     [junit]  at java.lang.VMClassRegistry.defineClass (Native Method)
>     [junit]  at java.lang.ClassLoader.defineClass (Unknown Source)
>     [junit]  at java.security.SecureClassLoader.defineClass (SecureClassLoader.java:
68)
>     [junit]  at java.net.URLClassLoader.findClassImpl (URLClassLoader.java: 1130)
>     [junit]  at java.net.URLClassLoader$4.run (URLClassLoader.java: 617)
>     [junit]  at java.net.URLClassLoader$4.run (URLClassLoader.java: 616)
>     [junit]  at java.security.AccessController.doPrivilegedImpl (Unknown Source)
>     [junit]  at java.security.AccessController.doPrivileged (Unknown Source)
>     [junit]  at java.net.URLClassLoader.findClass (URLClassLoader.java: 614)
>     [junit]  at java.lang.ClassLoader.loadClass (Unknown Source)
>     [junit]  at java.net.URLClassLoader$SubURLClassLoader.loadClass (URLClassLoader.java:
116)
>     [junit]  at java.lang.ClassLoader.loadClass (Unknown Source)
>     [junit]  at org.apache.harmony.vm.JarRunner.main (Unknown Source)

-- 
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