Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
fix InaccessibleObjectException in jdk17. #4077
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Apr 20, 2022
1 parent a234f9a commit dd3de5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/alibaba/fastjson/util/TypeUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import java.lang.reflect.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.security.AccessControlException;
import java.sql.Clob;
import java.text.ParseException;
import java.text.SimpleDateFormat;
Expand Down Expand Up @@ -2553,7 +2552,7 @@ static void setAccessible(AccessibleObject obj) {
}
try {
obj.setAccessible(true);
} catch (AccessControlException error) {
} catch (Throwable error) {
setAccessibleEnable = false;
}
}
Expand Down

0 comments on commit dd3de5f

Please sign in to comment.