You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <ji...@apache.org> on 2007/12/06 23:11:43 UTC

[jira] Created: (BEEHIVE-1209) Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6

Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6
-----------------------------------------------------------------------------

                 Key: BEEHIVE-1209
                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1209
             Project: Beehive
          Issue Type: Improvement
          Components: Controls, NetUI
    Affects Versions: 1.0.2, 1.0.1, 1.0
            Reporter: Carlin Rogers
             Fix For: V.Next


With Java 6, the calls to ClassLoader.loadClass() for array types will fail with a ClassNotFoundException. Sun "highly" recommends that

    classLoader.loadClass(className)

be replaced with

    Class.forName(className, false, classLoader)

The issue is described in...
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500212 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149

Basically, ClassLoader.loadClass() is fine for plain classes (which is most of the cases in Beehive that I looked at), not for arrays etc. However, based on the recommendation from Sun, I can go through the code and just make changes to use Class.forName()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BEEHIVE-1209) Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6

Posted by "Carlin Rogers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BEEHIVE-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlin Rogers resolved BEEHIVE-1209.
------------------------------------

    Resolution: Fixed

changes went in to trunk with SVN revision 601914.

> Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6
> -----------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1209
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1209
>             Project: Beehive
>          Issue Type: Improvement
>          Components: Controls, NetUI
>    Affects Versions: 1.0, 1.0.1, 1.0.2
>            Reporter: Carlin Rogers
>            Assignee: Carlin Rogers
>             Fix For: V.Next
>
>
> With Java 6, the calls to ClassLoader.loadClass() for array types will fail with a ClassNotFoundException. Sun "highly" recommends that
>     classLoader.loadClass(className)
> be replaced with
>     Class.forName(className, false, classLoader)
> The issue is described in...
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500212 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
> Basically, ClassLoader.loadClass() is fine for plain classes (which is most of the cases in Beehive that I looked at), not for arrays etc. However, based on the recommendation from Sun, I can go through the code and just make changes to use Class.forName()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BEEHIVE-1209) Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6

Posted by "Carlin Rogers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BEEHIVE-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlin Rogers updated BEEHIVE-1209:
-----------------------------------

    Assignee: Carlin Rogers

Java class loader doc changes/improvements tracked in...
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516909

> Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6
> -----------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1209
>                 URL: https://issues.apache.org/jira/browse/BEEHIVE-1209
>             Project: Beehive
>          Issue Type: Improvement
>          Components: Controls, NetUI
>    Affects Versions: 1.0, 1.0.1, 1.0.2
>            Reporter: Carlin Rogers
>            Assignee: Carlin Rogers
>             Fix For: V.Next
>
>
> With Java 6, the calls to ClassLoader.loadClass() for array types will fail with a ClassNotFoundException. Sun "highly" recommends that
>     classLoader.loadClass(className)
> be replaced with
>     Class.forName(className, false, classLoader)
> The issue is described in...
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500212 
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
> Basically, ClassLoader.loadClass() is fine for plain classes (which is most of the cases in Beehive that I looked at), not for arrays etc. However, based on the recommendation from Sun, I can go through the code and just make changes to use Class.forName()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.