Skip to content
Permalink
Browse files
8255394: jdk/test/lib/hexdump/ASN1FormatterTest.java fails with ---il…
…legal-access=deny

Reviewed-by: alanb, weijun
  • Loading branch information
Roger Riggs committed Oct 27, 2020
1 parent 84e985d commit a023b93712d911f4570432af58717a495651ee09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
@@ -39,6 +39,7 @@
/*
* @test
* @summary ASN.1 formatting
* @modules java.base/sun.security.util
* @library /test/lib
* @compile ASN1FormatterTest.java
* @run testng jdk.test.lib.hexdump.ASN1FormatterTest
@@ -412,7 +412,6 @@ private static String oidName(byte[] bytes) {
// Look up the OID; if the class is not accessible just return the numeric form
Class<?> cl = Class.forName("sun.security.util.KnownOIDs");
Method findMatch = cl.getDeclaredMethod("findMatch", String.class);
findMatch.setAccessible(true);
Object oid = findMatch.invoke(null, noid);
return (oid == null) ? noid : noid + " (" + oid.toString() + ")";
} catch (ClassNotFoundException | NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {

1 comment on commit a023b93

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on a023b93 Oct 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.