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

Notepad class should be public

XMLWordPrintable

    • b23
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: