Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-13 Thread Alan Bateman
On Thu, 12 Aug 2021 19:27:42 GMT, Lance Andersen  wrote:

>> Hi all,
>> 
>> Please review the fix for JDK-8263940 to address an issues when the default 
>> file system provider is packaged as JAR file on class path.
>> 
>> The patch also addresses the `@bug` line for JDK-8271194
>> 
>> Mach5 Tier1 - Tier3 have run without issues
>> 
>> Best,
>> Lance
>
> Lance Andersen has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use toList()

test/jdk/java/nio/file/spi/SetDefaultProvider.java line 26:

> 24: /**
> 25:  * @test
> 26:  * @bug 4313887 7006126 8142968 8178380 8183320 8210112 8266345 8263940

Thanks for correcting the @bug tag.

test/jdk/java/nio/file/spi/SetDefaultProvider.java line 89:

> 87: createFileSystemProviderJar(jar, Path.of(testClasses));
> 88: String classpath = jar + File.pathSeparator + testClasses
> 89: + File.separator + "modules" + File.separator + "m";

This ends up with two copies of TestFIleSystemProvider on the class path. I 
think we should compile TestProvider to a different directory. That will 
eliminate the need to filter the classes when creating the JAR file.

test/jdk/java/nio/file/spi/SetDefaultProvider.java line 99:

> 97:  */
> 98: private void createFileSystemProviderJar(Path jar, Path dir) throws 
> IOException {
> 99: 

In this test, the supporting methods are at the end of the source file, 
probably should keep it consistent.

-

PR: https://git.openjdk.java.net/jdk/pull/5103


Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-12 Thread Joe Wang
On Thu, 12 Aug 2021 19:27:42 GMT, Lance Andersen  wrote:

>> Hi all,
>> 
>> Please review the fix for JDK-8263940 to address an issues when the default 
>> file system provider is packaged as JAR file on class path.
>> 
>> The patch also addresses the `@bug` line for JDK-8271194
>> 
>> Mach5 Tier1 - Tier3 have run without issues
>> 
>> Best,
>> Lance
>
> Lance Andersen has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use toList()

Marked as reviewed by joehw (Reviewer).

-

PR: https://git.openjdk.java.net/jdk/pull/5103


Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-12 Thread Iris Clark
On Thu, 12 Aug 2021 19:27:42 GMT, Lance Andersen  wrote:

>> Hi all,
>> 
>> Please review the fix for JDK-8263940 to address an issues when the default 
>> file system provider is packaged as JAR file on class path.
>> 
>> The patch also addresses the `@bug` line for JDK-8271194
>> 
>> Mach5 Tier1 - Tier3 have run without issues
>> 
>> Best,
>> Lance
>
> Lance Andersen has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use toList()

Marked as reviewed by iris (Reviewer).

-

PR: https://git.openjdk.java.net/jdk/pull/5103


Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-12 Thread Lance Andersen
On Thu, 12 Aug 2021 18:55:08 GMT, Naoto Sato  wrote:

>> Lance Andersen has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   Use toList()
>
> test/jdk/java/nio/file/spi/SetDefaultProvider.java line 107:
> 
>> 105: .map(path -> path.getFileName().toString())
>> 106: .filter(f -> f.startsWith("TestProvider"))
>> 107: .collect(Collectors.toList());
> 
> Nit: Could simply issue `.toList()` here.

Thank you Naoto, it is a bit cleaner so pushed the update.

-

PR: https://git.openjdk.java.net/jdk/pull/5103


Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-12 Thread Brian Burkhalter
On Thu, 12 Aug 2021 19:24:39 GMT, Lance Andersen  wrote:

>> Hi all,
>> 
>> Please review the fix for JDK-8263940 to address an issues when the default 
>> file system provider is packaged as JAR file on class path.
>> 
>> The patch also addresses the `@bug` line for JDK-8271194
>> 
>> Mach5 Tier1 - Tier3 have run without issues
>> 
>> Best,
>> Lance
>
> Lance Andersen has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Use toList()

Marked as reviewed by bpb (Reviewer).

-

PR: https://git.openjdk.java.net/jdk/pull/5103


Re: RFR: 8263940: NPE when creating default file system when default file system provider is packaged as JAR file on class path [v2]

2021-08-12 Thread Lance Andersen
> Hi all,
> 
> Please review the fix for JDK-8263940 to address an issues when the default 
> file system provider is packaged as JAR file on class path.
> 
> The patch also addresses the `@bug` line for JDK-8271194
> 
> Mach5 Tier1 - Tier3 have run without issues
> 
> Best,
> Lance

Lance Andersen has updated the pull request incrementally with one additional 
commit since the last revision:

  Use toList()

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5103/files
  - new: https://git.openjdk.java.net/jdk/pull/5103/files/c09d7c32..6a65fb35

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5103&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5103&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5103.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5103/head:pull/5103

PR: https://git.openjdk.java.net/jdk/pull/5103