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

Incorrect position of the synthetic unnamed class

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: