paulk-asert opened a new pull request, #3077:
URL: https://github.com/apache/groovy/pull/3077

   …t in the current compilation unit
   
   A class that refers to a nested class got an InnerClasses entry for it only 
when the nested class was in the same compilation unit. A nested class read 
from the class path, whether a pre-compiled Groovy class or a JDK class, got no 
entry. The same source therefore compiled to different bytes depending on what 
else was in the compilation unit, which defeats compile avoidance in 
incremental builds.
   
   When reading a class file, the decompiler now keeps the class's own 
InnerClasses entries for itself and its enclosing classes, and those entries 
are written into any class that refers to it. For class nodes built by 
reflection, the same entries are derived from the declaring classes. 
getOuterClass() is unchanged, so only the generated bytecode is affected.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to