-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b15
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8361242 | 21.0.9-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b02 |
JDK-8362377 | 17.0.17-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b03 |
JDK-8362454 | 11.0.29-oracle | Ramesh Gangadhar | P4 | Resolved | Fixed | b03 |
There are 3 places in test with similar code
private static Path fetch????(Class<?> clazz) {
try {
return ArtifactResolver.resolve(clazz).entrySet().stream()
.findAny().get().getValue();
} catch (ArtifactResolverException e) {
Throwable cause = e.getCause();
if (cause == null) {
throw new SkippedException("Cannot resolve artifact, "
+ "please check if JIB jar is present in classpath.", e);
}
throw new SkippedException("Fetch artifact failed: " + clazz, e);
}
}
It can be combined into one utility method.
private static Path fetch????(Class<?> clazz) {
try {
return ArtifactResolver.resolve(clazz).entrySet().stream()
.findAny().get().getValue();
} catch (ArtifactResolverException e) {
Throwable cause = e.getCause();
if (cause == null) {
throw new SkippedException("Cannot resolve artifact, "
+ "please check if JIB jar is present in classpath.", e);
}
throw new SkippedException("Fetch artifact failed: " + clazz, e);
}
}
It can be combined into one utility method.
- backported by
-
JDK-8361242 Add an ArtifactResolver.fetch(clazz) method
-
- Resolved
-
-
JDK-8362377 Add an ArtifactResolver.fetch(clazz) method
-
- Resolved
-
-
JDK-8362454 Add an ArtifactResolver.fetch(clazz) method
-
- Resolved
-
- relates to
-
JDK-8360882 Tests throw SkippedException when they should fail
-
- Open
-
- links to
-
Commit(master) openjdk/jdk/e62becc6
-
Review(master) openjdk/jdk21u-dev/1991
-
Review(master) openjdk/jdk/23989
(2 links to)