Clarify if public static main method is allowed in anonymous/local class

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: None
    • Component/s: tools

      JDK-8261785 raised the question if such method should be allowed in launcher.

      The static method is allowed in local and anonymous class by JEP-395, so that it's possible to define 'main' method and launched with `java` command as long as user can specify the class.

            Assignee:
            Unassigned
            Reporter:
            Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: