RFR: 8223553: Fix code constructs that do not compile with the Eclipse Java Compiler
christoph.langer at sap.com
Wed May 8 08:02:58 UTC 2019
please review a small change that I'd like to see in OpenJDK to get rid of compilation errors in the Eclipse IDE.
It seems the root cause for the compilation errors is that javac would sometimes widen capture variables and is hence able to compile the places that I touch here. The EC4J compiler claims that it's following the spec more strictly and bails out at these places. I had posted about this on compiler-dev but got no reaction .
So, as this seems to be some field of open work for the compiler/spec folks, I'd like to get EC4J quiesced by introducing some slight modifications to the original places which makes the code appeal a bit less elegant and fluent but will get rid of the compile errors.
The modification to src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java belongs to JSR-166, so I don't know if it needs some special handling.
Thanks & Best regards
More information about the core-libs-dev