javassist icon indicating copy to clipboard operation
javassist copied to clipboard

How to get the value of a field if it is not a constant field?

Open 2017398956 opened this issue 5 months ago • 1 comments

public class TestBean {
    public static final int[] test = new int[]{1,2,3};
}

How to get the value of test? CtField.getConstantValue() return null if the field type is a primitive type.

2017398956 avatar Sep 09 '24 07:09 2017398956