beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carlin Rogers (JIRA)" <j...@apache.org>
Subject [jira] Created: (BEEHIVE-1209) Change ClassLoader.loadClass() to 3 arg version of Class.forName() for Java 6
Date Thu, 06 Dec 2007 22:11:43 GMT
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.


Mime
View raw message