File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
hotspot/jtreg/compiler/aot
lib/jdk/test/lib/artifacts Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,7 @@ class DevkitLinuxX64 { }
268
268
}
269
269
} catch (ArtifactResolverException e ) {
270
270
System .err .println ("artifact resolution error: " + e );
271
+ e .printStackTrace (System .err );
271
272
// let jaotc try to find linker
272
273
return null ;
273
274
}
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ private static String fetchNssLib(Class<?> clazz) {
853
853
+ "please check if JIB jar is present in classpath." );
854
854
} else {
855
855
throw new RuntimeException ("Fetch artifact failed: " + clazz
856
- + "\n Please make sure the artifact is available." );
856
+ + "\n Please make sure the artifact is available." , e );
857
857
}
858
858
}
859
859
Policy .setPolicy (null ); // Clear the policy created by JIB if any
Original file line number Diff line number Diff line change @@ -12,4 +12,16 @@ public ArtifactResolverException(String message) {
12
12
public ArtifactResolverException (String message , Throwable cause ) {
13
13
super (message , cause );
14
14
}
15
+
16
+ public String toString () {
17
+ return super .toString () + ": " + getRootCause ().toString ();
18
+ }
19
+
20
+ public Throwable getRootCause () {
21
+ Throwable rootCause = getCause ();
22
+ while (rootCause .getCause () != null && rootCause .getCause () != rootCause ) {
23
+ rootCause = rootCause .getCause ();
24
+ }
25
+ return rootCause ;
26
+ }
15
27
}
You can’t perform that action at this time.
0 commit comments