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

Suggest making it possible to retrieve the underlying JavaFileObject of a TypeElement

    XMLWordPrintable

Details

    Description

      TypeElements usually have an underlying JavaFileObject, often either a .java or a .class one, but there is no public API to retrieve those JavaFileObjects.

      This would be good for situations where a client compiles a source with JSR199, gets a Tree, and gets TypeElements out of that tree, and wants to know for instance if 1) the TypeElement comes from the original source, or 2) if the TypeElement comes from any JavaFileObject supplied by that client in their JavaFileManager implementation, OR if the client wants to access the underlying .java or .class file for other reasons, e.g. showing it in an editor.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              kbronkho Keimpe Bronkhorst (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: