harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Fursov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-974) RI allows to load classes with system classloader while Harmony not
Date Tue, 25 Jul 2006 13:38:13 GMT
RI allows to load classes with system classloader while Harmony not
-------------------------------------------------------------------

                 Key: HARMONY-974
                 URL: http://issues.apache.org/jira/browse/HARMONY-974
             Project: Harmony
          Issue Type: Bug
          Components: Non-bug differences from RI
         Environment: Windows XP
            Reporter: Mikhail Fursov


Here is a test, that demonstrates the difference in behaviour in RI (sun1.5) and Harmony when
explicitly loading classes with system classloader.
Note that RI allows to load only array types.
I think this is RI bug, but need to recheck.

public class TestClassLoader {

  public static void main(String[] arguments) throws ClassNotFoundException {
        ClassLoader cl = ClassLoader.getSystemClassLoader();
        Class cls = cl.loadClass("[B");
//        Class cls = Class.forName("[B");
        System.out.println("Class is:"+cls);
  }
}


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