dweiss edited a comment on pull request #2052:
URL: https://github.com/apache/lucene-solr/pull/2052#issuecomment-748454464


   The master branch of the JDK always emits this exception, it seems:
   
https://github.com/openjdk/jdk/blob/master/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java#L3534-L3540
   
   Previously it was guarded with 'sunapi' lint switch. To be honest this looks 
like a regression because the sunApiHandler is still there in the code, it's 
just never used:
   
https://github.com/openjdk/jdk/blob/master/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java#L149-L158
   
   What Uwe suggests is good to me - look it up statically, save the result. If 
you can't find it, throw a meaningful exception later (not at class resolution 
time - this leads to very cryptic exceptions at runtime).


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to