Beehive
  1. Beehive
  2. BEEHIVE-1209

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.0.1, 1.0.2
    • Fix Version/s: V.Next
    • Component/s: Controls, NetUI
    • Labels:
      None

      Description

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

        Activity

        Carlin Rogers created issue -
        Carlin Rogers made changes -
        Field Original Value New Value
        Assignee Carlin Rogers [ crogers ]
        Carlin Rogers made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Carlin Rogers
            Reporter:
            Carlin Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development