Skip to content

Commit 1fdeaf5

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Handle another case of exceptions of type 'Error' when accessing members through JNI." into android12L-tests-dev
2 parents 138b00d + 85c0f5b commit 1fdeaf5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tests/signature/lib/android/src/android/signature/cts/DexMemberChecker.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ public static void checkSingleMember(DexMember dexMember, boolean reflection, bo
9898
try {
9999
observer.fieldAccessibleViaJni(hasMatchingField_JNI(klass, field), field);
100100
} catch (ClassNotFoundException | Error e) {
101-
if ((e instanceof NoClassDefFoundError)
102-
&& !(e.getCause() instanceof ExceptionInInitializerError)
103-
&& !(e.getCause() instanceof UnsatisfiedLinkError)) {
101+
if ((e instanceof NoClassDefFoundError) && !(e.getCause() instanceof Error)) {
104102
throw (NoClassDefFoundError) e;
105103
}
106104

0 commit comments

Comments
 (0)