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] Resolved: (HARMONY-1562) [drlvm] problem with IllegalAccessException thrown when main class invoked from jar
Date Mon, 25 Sep 2006 10:15:51 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-1562?page=all ]

Geir Magnusson Jr resolved HARMONY-1562.
----------------------------------------

    Resolution: Fixed

r449631

jar was already on classpath - no need to use URLClassLoader.  Even so, I had a bug in that
I didn't let class loader delegation happen...

> [drlvm] problem with IllegalAccessException thrown when main class invoked from jar
> -----------------------------------------------------------------------------------
>
>                 Key: HARMONY-1562
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1562
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Ubuntu 6, r449091, debug, testing w/ geronimo 1.1
>            Reporter: Geir Magnusson Jr
>         Assigned To: Geir Magnusson Jr
>         Attachments: Bar.java, Foo.java, jar-run.diff, MANIFEST.MF
>
>
> I think the attached testcase exhibits the same bug which prevents us from running eclipse
or geronimo.
> Compile the code and construct a jar :
> $ javac *.java
> $ jar cfm foo.jar MANIFEST.MF *.class
> and then simply run :
> $ cd deploy/jre/bin
> $ ./java -jar foo.jar
> You should see :
> Foo!
> java.lang.IllegalAccessError: from Foo to Bar
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         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