javac, duplicate keys are added to maps binaryOperators and unaryOperators at Operators

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • None

      At class Operators we have the following maps:

          /** Unary operators map. */
          private Map<Name, List<UnaryOperatorHelper>> unaryOperators = new HashMap<>(Tag.getNumberOfOperators());

          /** Binary operators map. */
          private Map<Name, List<BinaryOperatorHelper>> binaryOperators = new HashMap<>(Tag.getNumberOfOperators());

      for both the key is a name, there are several operator groups with the same name, as a result the last one to be added overrides all the preceding ones.

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

              Created:
              Updated:
              Resolved: