Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-04-05 Thread Jaikiran Pai
On Tue, 25 Mar 2025 09:39:07 GMT, Eirik Bjørsnøs wrote: >> Please help review this cleanup PR which makes the >> `java.net.JarURLConnection` fields `jarFileURL` and `entryName` final. >> >> The current `parseSpec` method is somewhat crufty, with some code quality >> issues which this PR aims

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Eirik Bjørsnøs
On Tue, 25 Mar 2025 21:06:29 GMT, Daniel Fuchs wrote: >> src/java.base/share/classes/java/net/JarURLConnection.java line 165: >> >>> 163: int separatorIndex = spec.indexOf("!/"); >>> 164: >>> 165: // REMIND: we don't handle nested JAR URLs >> >> Just noticed that this comment s

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Daniel Fuchs
On Tue, 25 Mar 2025 19:59:43 GMT, Eirik Bjørsnøs wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Rename 'separator' to 'separatorIndex', 'nameIdx' to 'nameIndex' > > src/java.base/share/classes/java/net/JarURLCon

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Eirik Bjørsnøs
On Tue, 25 Mar 2025 09:39:07 GMT, Eirik Bjørsnøs wrote: >> Please help review this cleanup PR which makes the >> `java.net.JarURLConnection` fields `jarFileURL` and `entryName` final. >> >> The current `parseSpec` method is somewhat crufty, with some code quality >> issues which this PR aims

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Daniel Fuchs
On Tue, 25 Mar 2025 09:39:07 GMT, Eirik Bjørsnøs wrote: >> Please help review this cleanup PR which makes the >> `java.net.JarURLConnection` fields `jarFileURL` and `entryName` final. >> >> The current `parseSpec` method is somewhat crufty, with some code quality >> issues which this PR aims

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Daniel Fuchs
On Tue, 25 Mar 2025 09:39:07 GMT, Eirik Bjørsnøs wrote: >> Please help review this cleanup PR which makes the >> `java.net.JarURLConnection` fields `jarFileURL` and `entryName` final. >> >> The current `parseSpec` method is somewhat crufty, with some code quality >> issues which this PR aims

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Eirik Bjørsnøs
On Tue, 25 Mar 2025 09:52:38 GMT, Jaikiran Pai wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Rename 'separator' to 'separatorIndex', 'nameIdx' to 'nameIndex' > > Thank you for the update. Looks fine to me. @ja

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Eirik Bjørsnøs
On Tue, 25 Mar 2025 09:27:15 GMT, Jaikiran Pai wrote: >> Eirik Bjørsnøs has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Rename 'separator' to 'separatorIndex', 'nameIdx' to 'nameIndex' > > src/java.base/share/classes/java/net/JarURLConne

Re: RFR: 8352858: Make java.net.JarURLConnection fields final [v2]

2025-03-25 Thread Eirik Bjørsnøs
> Please help review this cleanup PR which makes the > `java.net.JarURLConnection` fields `jarFileURL` and `entryName` final. > > The current `parseSpec` method is somewhat crufty, with some code quality > issues which this PR aims to improve: > > * The method-level comment seems stale and mis