rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

anonymous class loading error (https://github.com/rpau/javalang-compiler/issues/36) #37

Closed cal101 closed 7 years ago

rpau commented 7 years ago

@cal101 it was fixed in another PR, right?

cal101 commented 7 years ago

unfortunately not. If you surround code with "if(false) { ... }" the java compiler does not apply full compile and analysis to the then block. E.G. the anonymous class counter seems to be incremented but no class file is produced for anonymous classes in that block. Some other strange things are possible in constructors.