From c04ceb9bc71295fec691f99f7baaee31ba1aece7 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Mon, 18 Apr 2022 13:13:48 +0800 Subject: [PATCH 1/3] fix InaccessibleObjectException in jdk17. #4077 --- src/main/java/com/alibaba/fastjson/util/TypeUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/alibaba/fastjson/util/TypeUtils.java b/src/main/java/com/alibaba/fastjson/util/TypeUtils.java index cc1ea4ef09..0fb8964193 100644 --- a/src/main/java/com/alibaba/fastjson/util/TypeUtils.java +++ b/src/main/java/com/alibaba/fastjson/util/TypeUtils.java @@ -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; @@ -2553,7 +2552,7 @@ static void setAccessible(AccessibleObject obj) { } try { obj.setAccessible(true); - } catch (AccessControlException error) { + } catch (Throwable error) { setAccessibleEnable = false; } } From d083cb2234045dad4037cfabcb6aa4b603a158a0 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Mon, 18 Apr 2022 15:00:36 +0800 Subject: [PATCH 2/3] release arthas 1.2.80-fix --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2507e155ee..248c043fad 100644 --- a/pom.xml +++ b/pom.xml @@ -2,9 +2,9 @@ 4.0.0 - com.alibaba + com.taobao.arthas fastjson - 1.2.80 + 1.2.80-fix jar fastjson From 483228ad68da5a531297c05f4c7701c0e5e81026 Mon Sep 17 00:00:00 2001 From: hengyunabc Date: Mon, 18 Apr 2022 15:58:06 +0800 Subject: [PATCH 3/3] add release config --- pom.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 248c043fad..617dab5430 100644 --- a/pom.xml +++ b/pom.xml @@ -2,6 +2,12 @@ 4.0.0 + + org.sonatype.oss + oss-parent + 9 + + com.taobao.arthas fastjson 1.2.80-fix @@ -15,8 +21,8 @@ 4.13.1 - true - true + false + false UTF-8 1.5