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

Incorrect position of the synthetic unnamed class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 21
    • tools
    • None
    • b03

      Consider code like:
      ---
      void main() {
      }
      ---

      There will be a synthetic unnamed class created, wrapping the top-level methods and fields. But, the start position of the synthetic unnamed class is (in the case above) "5", not "0", as it could be expected.

      Also, the synthetic class has (synthetic) modifiers tree, which also has position "5", although "-1" (NOPOS) would be more adequate for synthetic modifiers.

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

              Created:
              Updated:
              Resolved: