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

Commit ab82d0b

Browse files
authoredApr 20, 2022
Merge pull request #4078 from hengyunabc/master
fix InaccessibleObjectException in jdk17. #4077
2 parents e900eae + 483228a commit ab82d0b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
 

‎pom.xml

+10-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
5-
<groupId>com.alibaba</groupId>
5+
<parent>
6+
<groupId>org.sonatype.oss</groupId>
7+
<artifactId>oss-parent</artifactId>
8+
<version>9</version>
9+
</parent>
10+
11+
<groupId>com.taobao.arthas</groupId>
612
<artifactId>fastjson</artifactId>
7-
<version>1.2.80</version>
13+
<version>1.2.80-fix</version>
814

915
<packaging>jar</packaging>
1016
<name>fastjson</name>
@@ -15,8 +21,8 @@
1521

1622
<properties>
1723
<junit.version>4.13.1</junit.version>
18-
<gpg.skip>true</gpg.skip>
19-
<javadoc.skip>true</javadoc.skip>
24+
<gpg.skip>false</gpg.skip>
25+
<javadoc.skip>false</javadoc.skip>
2026
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2127
<jdk.version>1.5</jdk.version>
2228
</properties>

‎src/main/java/com/alibaba/fastjson/util/TypeUtils.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
import java.lang.reflect.*;
3939
import java.math.BigDecimal;
4040
import java.math.BigInteger;
41-
import java.security.AccessControlException;
4241
import java.sql.Clob;
4342
import java.text.ParseException;
4443
import java.text.SimpleDateFormat;
@@ -2553,7 +2552,7 @@ static void setAccessible(AccessibleObject obj) {
25532552
}
25542553
try {
25552554
obj.setAccessible(true);
2556-
} catch (AccessControlException error) {
2555+
} catch (Throwable error) {
25572556
setAccessibleEnable = false;
25582557
}
25592558
}

0 commit comments

Comments
 (0)
This repository has been archived.