File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
src/jdk.jlink/share/classes/jdk/tools/jlink Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,6 @@ public Stream<Entry> entries() {
127
127
collectFiles ();
128
128
} catch (IOException e ) {
129
129
throw new UncheckedIOException (e );
130
- } catch (RuntimeImageLinkException e ) {
131
- // populate modified files exception
132
- throw e ;
133
130
}
134
131
return files .stream ().map (JRTFile ::toEntry );
135
132
}
Original file line number Diff line number Diff line change 25
25
26
26
package jdk .tools .jlink .internal .runtimelink ;
27
27
28
+ import java .util .Objects ;
29
+
28
30
/**
29
31
* Exception thrown when linking from the run-time image
30
32
*/
@@ -41,8 +43,8 @@ public static enum Reason {
41
43
private final Reason reason ;
42
44
43
45
public RuntimeImageLinkException (String file , Reason reason ) {
44
- this .file = file ;
45
- this .reason = reason ;
46
+ this .file = Objects . requireNonNull ( file ) ;
47
+ this .reason = Objects . requireNonNull ( reason ) ;
46
48
}
47
49
48
50
public String getFile () {
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ err.runtime.link.not.linkable.runtime=This JDK does not support linking from the
123
123
err.runtime.link.jdk.jlink.prohibited =This JDK does not contain packaged modules\
124
124
\ and cannot be used to create another image with the jdk.jlink module
125
125
err.runtime.link.packaged.mods =This JDK has no packaged modules.\
126
- \ --keep-packaged-modules is not supported.
126
+ \ --keep-packaged-modules is not supported
127
127
err.runtime.link.modified.file ={0} has been modified
128
128
err.runtime.link.patched.module =File {0} not found in the modules image.\
129
129
\ --patch-module is not supported when linking from the run-time image
You can’t perform that action at this time.
0 commit comments