harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2037) [drlvm][kernel] Unable to replace system class loader via cmd-line
Date Fri, 24 Nov 2006 06:14:02 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2037?page=all ]

Alexey Varlamov closed HARMONY-2037.
------------------------------------

    Resolution: Fixed
      Assignee: Alexey Varlamov

Vladimir, thanks for the remainder - it was fixed by shutdown refactoring patch HARMONY-2006.

Closing.

> [drlvm][kernel] Unable to replace system class loader via cmd-line
> ------------------------------------------------------------------
>
>                 Key: HARMONY-2037
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2037
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Alexey Varlamov
>         Assigned To: Alexey Varlamov
>            Priority: Minor
>
> The javadoc for ClassLoader.getSystemClassLoader() states that it should be possible
to replace default system classloader via "java.system.class.loader" property value.
> However this functionality is broken in DRLVM (since HARMONY-1582).
> To reproduce:
> public class CustomSysLoader extends ClassLoader {
>     public static void main(String[] args) {
>         ClassLoader scl = ClassLoader.getSystemClassLoader();
>         System.out.println(scl);
>         if (CustomSysLoader.class == scl.getClass()) {
>             System.out.println("PASSED");
>         } else {
>             System.out.println("FAILED");
>         }
>     }
>     public CustomSysLoader(ClassLoader parent) {
>         super(parent);
>     }
> }
> java -Djava.system.class.loader=CustomSysLoader CustomSysLoader
> HMYEXEL062E Internal VM error: Failed to create Java VM
> FAILED to invoke JVM.

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