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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: 6-pool
    • Component/s: client-libs
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: