uschindler edited a comment on pull request #1929:
URL: https://github.com/apache/calcite/pull/1929#issuecomment-685704487


   Hi,
   
   If your're interested here is a patch to fix the issue. The good thing: it 
also rmeove the stupid cast, because Javac can't guess the lambda's types:
   
   
[javacbug.patch.txt](https://github.com/apache/calcite/files/5162279/javacbug.patch.txt)
   
   If this also fixes checkerframework, go for it! Actually this seems another 
bug in javac, because moving the type outside of the try...catch (see my code) 
does not help, but moving to a separate method helps.
   
   To me this looks like a (new?) problem with javac and type parameters in 
combination with lambdas inside other lambdas. :-) This may be the reason why 
also Java 11 fails (see JDK 11 builds).


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


Reply via email to