OpenJDK source code not compiling with Eclipse compiler
Langer, Christoph
christoph.langer at sap.com
Tue Mar 26 22:01:34 UTC 2019
Hi,
ping: Are there any comments on my findings (see webrev)?
Especially, can anybody comment on the status of JDK-8016207?
Thanks
Christoph
From: Langer, Christoph
Sent: Freitag, 15. März 2019 15:49
To: 'compiler-dev at openjdk.java.net' <compiler-dev at openjdk.java.net>; Maurizio Cimadamore <maurizio.cimadamore at oracle.com>
Cc: Schmelter, Ralf <ralf.schmelter at sap.com>; 'Stephan Herrmann' <stephan.herrmann at berlin.de>
Subject: OpenJDK source code not compiling with Eclipse compiler
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/20190326/7aefee90/attachment-0001.html>
More information about the compiler-dev
mailing list