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.
/** 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.
- blocks
-
JDK-8161383 javac is looking for operator symbols at the wrong place
-
- Closed
-
- relates to
-
JDK-8071241 Investigate alternate strategy for type-checking operators
-
- Closed
-