Re: RFR: 8356255: Add Stable Field Updaters to allow efficient lazy field evaluations [v4]

2025-05-07 Thread David Beaumont
On Wed, 7 May 2025 09:23:45 GMT, Per Minborg wrote: >> This sketch shows how "Stable Updaters" can be used to create stable >> computations of `@Stable` fields. Only one updater is needed per class, >> similar to `AtomicIntegerFieldUpdater`. > > Per Minborg has updated the pull request incremen

Re: RFR: 8356255: Add Stable Field Updaters to allow efficient lazy field evaluations [v10]

2025-05-08 Thread David Beaumont
On Thu, 8 May 2025 13:16:25 GMT, Per Minborg wrote: >> This sketch shows how "Stable Updaters" can be used to create stable >> computations of `@Stable` fields. Only one updater is needed per class, >> similar to `AtomicIntegerFieldUpdater`. > > Per Minborg has updated the pull request incremen

RFR: 8356645: JavaRuntimeURLConnection should only connect to non-directory resources

2025-06-18 Thread David Beaumont
Simplifying JavaRuntimeURLConnection to avoid accidentally returning non-resource data to users. This change has the following distinct parts: 1. Refactor code to use Node instead of directly accessing low level ImageLocation type. 2. Remove unnecessary use of "Resource" interface and related UR

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources

2025-06-18 Thread David Beaumont
On Wed, 18 Jun 2025 12:53:56 GMT, David Beaumont wrote: > Simplifying JavaRuntimeURLConnection to avoid accidentally returning > non-resource data to users. > > This change has the following distinct parts: > 1. Refactor code to use Node instead of directly accessing low level

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources

2025-06-18 Thread David Beaumont
On Wed, 18 Jun 2025 13:37:49 GMT, Alan Bateman wrote: >> Happy to accept rewording here. I do want to pull out that there *is* a >> conceptual reason for treating module names like domain authorities though, >> or just make the code treat the whole path the same. >> Having unexplained weirdness

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources

2025-06-18 Thread David Beaumont
On Wed, 18 Jun 2025 13:11:00 GMT, Alan Bateman wrote: >> Simplifying JavaRuntimeURLConnection to avoid accidentally returning >> non-resource data to users. >> >> This change has the following distinct parts: >> 1. Refactor code to use Node instead of directly accessing low level >> ImageLocat

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-18 Thread David Beaumont
s for the non-resource cases. > 7. Adding extra test data to check the behaviour with respect to things like > percent escaping (previously untested). > 8. Adding TODO comments for things I could do in this PR or later (reviewer > opinions welcome). David Beaumont has updated the pull reque

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-18 Thread David Beaumont
On Wed, 18 Jun 2025 13:54:42 GMT, David Beaumont wrote: >>> Happy to accept rewording here. I do want to pull out that there _is_ a >>> conceptual reason for treating module names like domain authorities though, >>> or just make the code treat the whole path t

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-20 Thread David Beaumont
s for the non-resource cases. > 7. Adding extra test data to check the behaviour with respect to things like > percent escaping (previously untested). > 8. Adding TODO comments for things I could do in this PR or later (reviewer > opinions welcome). David Beaumont has updated the pull requ

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-20 Thread David Beaumont
On Thu, 19 Jun 2025 15:36:13 GMT, Alan Bateman wrote: >> David Beaumont has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reworking comment and adjusting TODOs. > > src/java.base/share/cl

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-20 Thread David Beaumont
On Fri, 20 Jun 2025 10:55:53 GMT, David Beaumont wrote: >> src/java.base/share/classes/sun/net/www/protocol/jrt/JavaRuntimeURLConnection.java >> line 50: >> >>> 48: private static final ImageReader READER = >>> ImageReaderFactory.getImageReader(); &g

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-20 Thread David Beaumont
On Wed, 18 Jun 2025 16:48:45 GMT, David Beaumont wrote: >> Simplifying JavaRuntimeURLConnection to avoid accidentally returning >> non-resource data to users. >> >> This change has the following distinct parts: >> 1. Refactor code to use Node instead o

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Sat, 21 Jun 2025 08:51:57 GMT, Alan Bateman wrote: >> src/java.base/share/classes/sun/net/www/protocol/jrt/JavaRuntimeURLConnection.java >> line 128: >> >>> 126: if (path.indexOf('%') == -1) { >>> 127: // Nothing to decode (overwhelmingly common case). >>> 128:

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v4]

2025-06-24 Thread David Beaumont
On Tue, 24 Jun 2025 14:48:31 GMT, Alan Bateman wrote: >> David Beaumont has updated the pull request incrementally with three >> additional commits since the last revision: >> >> - Remove redundant fast-path check. >> - Change method name. >> - Feedback

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v5]

2025-06-24 Thread David Beaumont
s for the non-resource cases. > 7. Adding extra test data to check the behaviour with respect to things like > percent escaping (previously untested). > 8. Adding TODO comments for things I could do in this PR or later (reviewer > opinions welcome). David Beaumont has updated the pull reque

Integrated: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources

2025-06-24 Thread David Beaumont
On Wed, 18 Jun 2025 12:53:56 GMT, David Beaumont wrote: > Simplifying JavaRuntimeURLConnection to avoid accidentally returning > non-resource data to users. > > This change has the following distinct parts: > 1. Refactor code to use Node instead of directly accessing low level

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Fri, 20 Jun 2025 11:13:12 GMT, David Beaumont wrote: >> Simplifying JavaRuntimeURLConnection to avoid accidentally returning >> non-resource data to users. >> >> This change has the following distinct parts: >> 1. Refactor code to use Node instead o

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Sat, 21 Jun 2025 08:47:14 GMT, Alan Bateman wrote: >> David Beaumont has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Feedback changes and renaming field to match nomenclature of JEP 220. > > src/java.

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Sat, 21 Jun 2025 09:03:10 GMT, Alan Bateman wrote: >> David Beaumont has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Feedback changes and renaming field to match nomenclature of JEP 220. > > src/java.

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Fri, 20 Jun 2025 16:20:37 GMT, Roger Riggs wrote: >> src/java.base/share/classes/sun/net/www/protocol/jrt/JavaRuntimeURLConnection.java >> line 119: >> >>> 117: public long getContentLengthLong() { >>> 118: try { >>> 119: return getResourceNode().size(); >> >> Having

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Sat, 21 Jun 2025 08:50:15 GMT, Alan Bateman wrote: >> src/java.base/share/classes/sun/net/www/protocol/jrt/JavaRuntimeURLConnection.java >> line 133: >> >>> 131: return ParseUtil.decode(path); >>> 132: } catch (IllegalArgumentException e) { >>> 133: throw new

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Mon, 23 Jun 2025 11:01:02 GMT, David Beaumont wrote: >> src/java.base/share/classes/sun/net/www/protocol/jrt/JavaRuntimeURLConnection.java >> line 60: >> >>> 58: >>> 59: // The resource node (when connected). >>> 60: private volatile N

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v4]

2025-06-23 Thread David Beaumont
s for the non-resource cases. > 7. Adding extra test data to check the behaviour with respect to things like > percent escaping (previously untested). > 8. Adding TODO comments for things I could do in this PR or later (reviewer > opinions welcome). David Beaumont has updated the pull reques

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v3]

2025-06-23 Thread David Beaumont
On Fri, 20 Jun 2025 11:13:12 GMT, David Beaumont wrote: >> Simplifying JavaRuntimeURLConnection to avoid accidentally returning >> non-resource data to users. >> >> This change has the following distinct parts: >> 1. Refactor code to use Node instead o

Re: RFR: 8359808: JavaRuntimeURLConnection should only connect to non-directory resources [v2]

2025-06-23 Thread David Beaumont
On Sat, 21 Jun 2025 08:26:41 GMT, Alan Bateman wrote: >> These were here explicitly to be discussed in review. If you think it's now >> covered by JDK-8359949, I can remove them. > >> These were here explicitly to be discussed in review. If you think it's now >> covered by JDK-8359949, I can re