errael commented on a change in pull request #2399:
URL: https://github.com/apache/netbeans/pull/2399#discussion_r497558706
##########
File path:
java/java.source.base/src/org/netbeans/modules/java/source/ElementUtils.java
##########
@@ -60,6 +60,11 @@ public static TypeElement
getTypeElementByBinaryName(JavacTask task, String name
for (ModuleElement me : allModules) {
TypeElement found = getTypeElementByBinaryName(task, me, name);
+ if (result == found) {
+ // avoid returning null, partial fix for [NETBEANS-4832]
+ continue;
+ }
+
Review comment:
Added separate commit for ANNOTATION_TYPE, ENUM, still in this PR.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists