Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4144204

JEditorPane.registerEditorKitForContentType takes classname w/o ClassLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.2.0
    • client-libs
    • None
    • swing1.1
    • generic
    • generic

      JEditorPane.registerEditorKitForContentType() takes a className without
      taking a classLoader. Internally a Class.forName() is used. This makes
      it impossible to create the EditorKit from anything but the class loader
      used in Class.forName.

      *NOTE* in 1.2, the class loader used by a class in rt.jar (like JEditorPane)
      is the system classloader, which does *NOT* include CLASSPATH.

      It may be worth checking if there are other places in Swing where this is done,
      this is the second critical bug in this area that I find.

      - eduardo

            tprinzing Tim Prinzing (Inactive)
            epelegrisunw Eduardo Pelegrillopart (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: