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

Notepad class should be public

    XMLWordPrintable

Details

    • b23
    • generic
    • generic

    Description

      After all these years I never noticed that the Notepad.java is not a public
      class and it is package private. The problem is that java launcher uses
      jni and it really does not care whether the class is public or proteced,
      and the main class can be be invoked.

      This is not the case with java.reflect.Method.invoke, it expects that
      class to be public. This is not a problem with the other demos.

      Attachments

        Issue Links

          Activity

            People

              serb Sergey Bylokhov
              ksrini Kumar Srinivasan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: