RFR(XS): 8220625: tools/javac/classreader/8171132/BadConstantValue.java failed with "did not see expected error"

Langer, Christoph christoph.langer at sap.com
Thu Apr 11 20:33:44 UTC 2019


Hi Martin,

I think this is a good fix for the issue. You could also try to compile from a source dir that is different to the classes dir that is used later on to load the bad class.

I think using the .java file if it is younger than the .class file is correct, when loading the class.

Best regards
Christoph

From: compiler-dev <compiler-dev-bounces at openjdk.java.net> On Behalf Of Doerr, Martin
Sent: Donnerstag, 11. April 2019 11:53
To: compiler-dev at openjdk.java.net
Subject: [CAUTION] RFR(XS): 8220625: tools/javac/classreader/8171132/BadConstantValue.java failed with "did not see expected error"

Hi,

we have also seen this test failing. I've analyzed the issue and added a comment:
https://bugs.openjdk.java.net/browse/JDK-8220625

My suggested fix:
http://cr.openjdk.java.net/~mdoerr/8171132_BadConstantValue/webrev.00/

Please check if the ClassReader behavior is as expected (usage of .java file with same timestamp even though .class file was provided).
If so, please review my trivial fix.

Best regards,
Martin

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190411/15d9dc6a/attachment-0001.html>


More information about the compiler-dev mailing list