-
Task
-
Resolution: Unresolved
-
P4
-
None
-
None
-
generic
-
generic
JavaDoc use of the javax.lang.model.element API is somewhat spoiled by the implementation of that API in OpenJDK, which allows to take shortcuts such as comparing objects by reference and determining element kind using the instanceof operator. These are not guaranteed to work by the API itself[1].
Although javadoc is developed and ships with the OpenJDK implementation of the Element API, it would be good to change the code to use the supported idioms such as `equals`, `getKind` and visitors.
[1]: https://docs.oracle.com/en/java/javase/23/docs/api/java.compiler/javax/lang/model/element/Element.html
Although javadoc is developed and ships with the OpenJDK implementation of the Element API, it would be good to change the code to use the supported idioms such as `equals`, `getKind` and visitors.
[1]: https://docs.oracle.com/en/java/javase/23/docs/api/java.compiler/javax/lang/model/element/Element.html
- relates to
-
JDK-8163008 Umbrella: Eliminate methods in the WorkArounds.java
-
- Open
-
-
JDK-8264866 Remove unneeded WorkArounds.isAutomaticModule
-
- Resolved
-
-
JDK-8271711 Remove WorkArounds.isSynthetic
-
- Resolved
-