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

No way to detect synthetic com.sun.source.tree.Tree's

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u17
    • Fix Version/s: tbd_major
    • Component/s: tools
    • Labels:

      Description

      Javac can create several synthetic com.sun.source.tree.Tree's. Examples are the default constructor and the implicit 'super()' call in constructors, and there might be others. In addition, you can't recognize these trees as synthetic by checking their start offset. The default constructor has a '0' start offset, and the implicit 'super()' call has a start offset equal to the method body start offset.

      Request to be able to recognize synthetic constructs. Minimally these constructs should return -1 as their start offset, but preferably there should be a flag.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                kbronkho Keimpe Bronkhorst
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: