From d7675a8932c9c0ea791d9c4f4fefa8044c8efe43 Mon Sep 17 00:00:00 2001 From: wxm <115806199+youfanx@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:47:50 +0800 Subject: [PATCH] up --- rxlib/src/main/java/org/rx/core/Reflects.java | 1 + rxlib/src/main/java/org/rx/core/ThreadPool.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rxlib/src/main/java/org/rx/core/Reflects.java b/rxlib/src/main/java/org/rx/core/Reflects.java index 053506b6..20061e19 100644 --- a/rxlib/src/main/java/org/rx/core/Reflects.java +++ b/rxlib/src/main/java/org/rx/core/Reflects.java @@ -603,6 +603,7 @@ public static Map getFieldMap(Class type) { List all = FieldUtils.getAllFieldsList(type); for (Field field : all) { setAccess(field); + FieldUtils.removeFinalModifier(field); } return Collections.unmodifiableMap(Linq.from(all).toMap(Field::getName, p -> p)); }); diff --git a/rxlib/src/main/java/org/rx/core/ThreadPool.java b/rxlib/src/main/java/org/rx/core/ThreadPool.java index 5c5050ec..46c89cb1 100644 --- a/rxlib/src/main/java/org/rx/core/ThreadPool.java +++ b/rxlib/src/main/java/org/rx/core/ThreadPool.java @@ -204,7 +204,8 @@ public T call() { TraceHandler.INSTANCE.log(toString(), ex = e); throw e; } finally { - TraceHandler.INSTANCE.saveMethodTrace(fn.getClass(), Reflects.getStackTrace(Thread.currentThread()), new Object[]{id}, + Thread t = Thread.currentThread(); + TraceHandler.INSTANCE.saveMethodTrace(t, fn.getClass(), Reflects.getStackTrace(t), new Object[]{id}, r, ex, System.nanoTime() - s); } return r;