jlahoda commented on issue #1016: [NETBEANS-586]: NPE findUsages
URL: 
https://github.com/apache/incubator-netbeans/pull/1016#issuecomment-436892113
 
 
   So, this will mean some usages won't be found (more or less silently), which 
does not feel right. I tried a few simple cases (including the 
platform/core.multitabs), although on a dev build of JDK 12, and didn't see the 
problem. So I wonder what is the reproducible testcase, so that we can find out 
what's the issue.
   
   I believe it should be possible to re-write the search for the constructor 
to only work over trees (basically, do classTree.getMembers() and search for 
the constructor); it might be tricky to determine which of the members is the 
constructor, but should be possible. (TreeUtilities.isSynthetic in the worst 
case). Besides for potentially fixing this bug, it might also be somewhat 
faster.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
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

Reply via email to