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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 7u17
    • tools

      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.

            jlahoda Jan Lahoda
            kbronkho Keimpe Bronkhorst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: