harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Beliaev (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2037) [drlvm][kernel] Unable to replace system class loader via cmd-line
Date Thu, 23 Nov 2006 14:13:03 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2037?page=comments#action_12452249 ] 
            
Vladimir Beliaev commented on HARMONY-2037:
-------------------------------------------

I failed to reproduce this issue both on Windows/IA32 ant Linux IA32 on today version of DRLVM.

On Windows/IA32 with JAVA_HOME unset (from cygwin):
- version:  svn = r478553, (Nov 23 2006), Windows/ia32/msvc 1310, debug build
- command: ./working_vm/build/deploy/jre/bin/java -Djava.system.class.loader=CustomSysLoader
CustomSysLoader
- log: 
    CustomSysLoader@20535d40
    PASSED

On Linux/IA32 (SUSE LINUX Enterprise Server 9) with JAVA_HOME unset:
- version:  svn = r478552, (Nov 23 2006), Linux/ia32/gcc 3.3.3, debug build
- command: ./working_vm/build/deploy/jre/bin/java -Djava.system.class.loader=CustomSysLoader
CustomSysLoader
- log: 
    CustomSysLoader@41c030a0
    PASSED

So the issue is either not reproducible or more information required for reproduction.

Thanks
Vladimir

> [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();
>         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