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

Commit

Permalink
Merge pull request #4078 from hengyunabc/master
Browse files Browse the repository at this point in the history
fix InaccessibleObjectException in jdk17. #4077
  • Loading branch information
wenshao authored Apr 20, 2022
2 parents e900eae + 483228a commit ab82d0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
14 changes: 10 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.alibaba</groupId>
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>9</version>
</parent>

<groupId>com.taobao.arthas</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.80</version>
<version>1.2.80-fix</version>

<packaging>jar</packaging>
<name>fastjson</name>
Expand All @@ -15,8 +21,8 @@

<properties>
<junit.version>4.13.1</junit.version>
<gpg.skip>true</gpg.skip>
<javadoc.skip>true</javadoc.skip>
<gpg.skip>false</gpg.skip>
<javadoc.skip>false</javadoc.skip>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.5</jdk.version>
</properties>
Expand Down
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 ab82d0b

Please # to comment.