Bug in initialization of MatchBindingsComputer

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Not an Issue
    • Priority: P4
    • 22
    • Affects Version/s: 21
    • Component/s: tools
    • None

      It seems like this class violates the usual protocol for initialization of javac components: a new binding computer seems to be returned each time the factory method is called (e.g. there is no instance field to which the singleton instance is saved):

      https://github.com/openjdk/jdk/blob/22e17c29a2a4eb546fae4c01ae435283654e3bb3/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/MatchBindingsComputer.java#L50

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: