Skip to content

Commit

Permalink
fix InaccessibleObjectException in jdk17. alibaba#4077
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyunabc committed Apr 18, 2022
1 parent e900eae commit c04ceb9
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 c04ceb9

Please sign in to comment.