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

UManager.setLookAndFeel(String className) should mention it accepts binary class name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • P3
    • 6-pool
    • 6
    • client-libs

    Description

      The spec for UManager.setLookAndFeel(String className) says:
      "className - a string specifying the name of the class that implements the look and feel"
      It is not clear which name accepts the method: binary name or fully qualified name.
      It looks like it accepts binary class name, but it should be specified obviously.
      According to http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.7 method setLookAndFeel(String className) should found inner classes defined with "." ("SampleClass.InnerClass"). However it throws ClassNotFoundException for such classes and founds classes defined with "$". Hence either spec should mention about binary name or implementation should be changed to accept fully .

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmiltsov Dmitry Miltsov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: