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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 25, 26
    • tools
    • None

      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.

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

              Created:
              Updated: