You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Fursov (JIRA)" <ji...@apache.org> on 2006/07/25 15:38:13 UTC

[jira] Created: (HARMONY-974) RI allows to load classes with system classloader while Harmony not

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