Candidate main methods not computed properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • None
    • b24

      The candidate main methods are not computed properly - methods that are private, or have non-void return type are not candidate methods, but may hide a real candidate method.

      For example:
      ```
      $ cat /tmp/MainPrivate.java
      public class MainPrivate {
          private static void main(String... args) {
          }
          void main() {
              System.out.println("Should be called!");
          }
      }
      $ java /tmp/MainPrivate.java
      error: can't find main(String[]) method in class: MainPrivate
      ```

            Assignee:
            Jan Lahoda
            Reporter:
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: