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] Created: (HARMONY-2037) [drlvm][kernel] Unable to replace system class loader via cmd-line
Date Wed, 01 Nov 2006 13:32:16 GMT
[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
            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();
        if (CustomSysLoader.class == scl.getClass()) {
        } else {

    public CustomSysLoader(ClassLoader 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


View raw message