[11u] RFR 8177068: incomplete classpath causes NPE in Flow

Astigeevich, Evgeny eastig at amazon.co.uk
Tue Apr 20 17:02:21 UTC 2021


From: compiler-dev <compiler-dev-retn at openjdk.java.net> on behalf of "Astigeevich, Evgeny" <eastig at amazon.co.uk>
Date: Monday, 19 April 2021 at 12:04
To: "jdk-updates-dev at openjdk.java.net" <jdk-updates-dev at openjdk.java.net>
Cc: "compiler-dev at openjdk.java.net" <compiler-dev at openjdk.java.net>
Subject: [11u] RFR 8177068: incomplete classpath causes NPE in Flow


Please review the backport of JDK-8177068 to 11u.

Bug: https://bugs.openjdk.java.net/browse/JDK-8177068
Original patch: https://hg.openjdk.java.net/jdk/jdk/rev/a3c63a9dfb2c

The original patch does not apply cleanly to 11u. In the original patch, file DeferredAttr.java, calls of ‘attribSpeculative’ to be changed have the argument AttributionMode.SPECULATIVE. The original patch does not change this. In 11u ‘attribSpeculative’ does not have the parameter AttributionMode. I changed the affected calls to 11u API.

11u  webrev: http://cr.openjdk.java.net/~eastigeevich/8177068/webrev.00/

Tested: Amazon Linux 2 x86_64, tier1, tier2, langtools/tools/javac/T8177068/NoCompletionFailureSkipOnSpeculativeAttribution.java
Note: There is a failing test: sun/security/pkcs11/Secmod/AddTrustedCert.java. It fails without the patch as well. Details: https://bugs.openjdk.java.net/browse/JDK-8232153

Evgeny Astigeevich

Amazon Development Centre (London) Ltd. Registered in England and Wales with registration number 04543232 with its registered office at 1 Principal Place, Worship Street, London EC2A 2FA, United Kingdom.

More information about the jdk-updates-dev mailing list