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

(soa) Declaration Mirror API should be able to model more general classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 6
    • 6
    • tools
    • apt
    • generic
    • generic

      The api mirror API which models classes, http://java.sun.com/j2se/1.5.0/docs/guide/apt/mirror/com/sun/mirror/declaration/ClassDeclaration.html, is not able to model anonymous and local classes. This is adaquate for the purposes of apt since only visibly declarable classes will be returned; i.e. only class types which can appear in a method signature. However, if the follow-on API is to be used in broader contexts, then at least a small amount of additional functionality will be needed; cf. the new core reflection functionality added in Tiger:

      Class.getEnclosingClass
      Class.getEnclosingMethod
      Class.getEnclosingConstructor
      Class.getSimpleName
      Class.isAnonymousClass
      Class.isLocalClass
      Class.isMemberClass

      ###@###.### 2005-1-25 01:13:24 GMT

            darcy Joe Darcy
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: