Skip to content

Commit e808e8d

Browse files
YqwedGerrit Code Review
authored andcommitted
Merge "Handle another case of exceptions of type 'Error' when accessing members through JNI." into android12-tests-dev
2 parents d3ef97c + c81be00 commit e808e8d

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)