We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84e985d commit a023b93Copy full SHA for a023b93
test/lib-test/jdk/test/lib/hexdump/ASN1FormatterTest.java
@@ -39,6 +39,7 @@
39
/*
40
* @test
41
* @summary ASN.1 formatting
42
+ * @modules java.base/sun.security.util
43
* @library /test/lib
44
* @compile ASN1FormatterTest.java
45
* @run testng jdk.test.lib.hexdump.ASN1FormatterTest
test/lib/jdk/test/lib/hexdump/ASN1Formatter.java
@@ -412,7 +412,6 @@ private static String oidName(byte[] bytes) {
412
// Look up the OID; if the class is not accessible just return the numeric form
413
Class<?> cl = Class.forName("sun.security.util.KnownOIDs");
414
Method findMatch = cl.getDeclaredMethod("findMatch", String.class);
415
- findMatch.setAccessible(true);
416
Object oid = findMatch.invoke(null, noid);
417
return (oid == null) ? noid : noid + " (" + oid.toString() + ")";
418
} catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {
0 commit comments