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

(soa) Should apt reuse instantiated factories?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs

      As part of the effort to add a listener mechanism to apt (5048539), the discovery policy was modified to only load the class for an AnnotationProcessorFactory once. On each round, the factory is asked to provide a new instance of the class and that instance is used by the tool to get information about the factory. Another possible implementation would be to re-use the instantiated factory object across apt rounds; doing so would allow cross-round state to be stored in either local variables in the factory object or as static state in the class.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: