private int getIndexFieldInConstPoolItems()

in dubbo-error-code-inspector/src/main/java/org/apache/dubbo/errorcode/extractor/JavassistConstantPoolErrorCodeExtractor.java [103:111]


    private int getIndexFieldInConstPoolItems(Object item) {
        Field indexField = ReflectUtils.getDeclaredFieldRecursively(item.getClass(), "index");

        try {
            return (int) indexField.get(item);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(e);
        }
    }