OpenJDK source code not compiling with Eclipse compiler
Langer, Christoph
christoph.langer at sap.com
Fri Mar 15 14:48:36 UTC 2019
Hi there,
I’m using Eclipse for OpenJDK development. For quite a long time, I’ve been stumbling over a few issues where the Eclipse compiler is not able to compile some code while javac is. It’s all related to generics and handling of capture vars.
There are open bugs, both at Eclipse [0] and OpenJDK[1] for this type of issues. The Eclipse bug refers to the OpenJDK bug and states that it just conforms to JLS. In the OpenJDK bug, the statement is that there are unspecified widening of captures which should be added to spec/JLS.
For the OpenJDK I have created the following webrev that shows how the problematic code places could be modified to be compilable with Eclipse ECJ: http://cr.openjdk.java.net/~clanger/webrevs/ecjcompile/
Can someone give me a status on JDK-8016207? Or are there arguments to convince Stephan (the ECJ compiler maintainer) to modify ECJ?
I’ll probably propose my webrev for OpenJDK, in case we can’t find a solution for the compilers
Thanks & Best regards
Christoph
[0] https://bugs.eclipse.org/bugs/show_bug.cgi?id=530236
[1] https://bugs.openjdk.java.net/browse/JDK-8016207
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190315/cbe8c318/attachment-0001.html>
More information about the compiler-dev
mailing list