Evaluate what is the proper end position for the implicitly declared class for compact source files.

XMLWordPrintable

    • Type: Task
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 25, 26
    • Component/s: tools
    • None
    • In Review

      Consider compact source file like:
      ```
      void main() {
          IO.println("Hello, world!");
      }
      ```

      The synthetic JCClassDecl wrapping the main method will have an end position -1. It should be evaluated if that's a reasonable value.

      Also the JCCompilationUnit wrapping the class "inherits" the end position from the class, and hence gets -1 as well. This is clearly wrong.

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

              Created:
              Updated: