[lworld] Integrated: 8327639: [lworld] test/jdk/java/lang/invoke/callerSensitive/CallerSensitiveAccess.java fails with --enable-preview
Roger Riggs
rriggs at openjdk.org
Tue Mar 12 13:47:33 UTC 2024
On Mon, 11 Mar 2024 14:31:24 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> The test contains a bug in which it attempts to use streams from ModuleReader.list() after the ModuleReader has been closed. Closing ModuleReader closes the underlying streams to the Jar/Zip file.
>
> The bug is only exercised when a patched module is read. Currently, --enable-preview uses module patching of the java.base module to include a set of classes that have been converted to be value classes.
>
> The test is modified to cache the results of the stream in a List and keep the scoped structure used by try-with-resources.
This pull request has now been integrated.
Changeset: f0a50deb
Author: Roger Riggs <rriggs at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/f0a50deb3e1b7e6a91a30a94ce87a1f664ce26dc
Stats: 21 lines in 1 file changed: 9 ins; 3 del; 9 mod
8327639: [lworld] test/jdk/java/lang/invoke/callerSensitive/CallerSensitiveAccess.java fails with --enable-preview
Reviewed-by: mchung
-------------
PR: https://git.openjdk.org/valhalla/pull/1042
More information about the valhalla-dev
mailing list