jlahoda opened a new pull request #2727:
URL: https://github.com/apache/netbeans/pull/2727


   Please see:
   https://issues.apache.org/jira/browse/NETBEANS-5322
   for the problem description
   
   The issue is that when Trees.getScope() is called, for vanilla javac, it 
will assign new anonymous innerclass names to any anonymous innerclasses it 
encounters, and then drops them to revert back to the original state. But, with 
nb-javac, we use IndexedClassDecl to keep the anonymous innerclass names 
stable, and hence the real anonymous innerclasses are dropped at the end of 
getScope().
   
   On one hand, this could be solved in nb-javac, but I believe we want (or 
must) avoid the tricks with IndexedClassDecl. These were done mostly for 
debugger, which needs to know the binary names of classes at least to set 
breakpoints at correct places. getScope() has been improved significantly and I 
hope it is good enough for the debugger, so my proposal here is to try to find 
out if things are working sufficiently OK without IndexedClassDecl by removing 
it.
   
   (Note IndexedClassDecl does not do much without nb-javac, so this should, I 
believe, only be really relevant when running with nb-javac.)
   


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

Reply via email to