sdaschner / jaxrs-analyzer

Creates REST documentation for JAX-RS projects
Apache License 2.0
319 stars 101 forks source link

Jax-RS Analyze Static Property Error #189

Open hawkbase4git opened 5 years ago

hawkbase4git commented 5 years ago

I am using version 0.17 with Swagger as the backend. I am getting Jax-Rs Analyzer "Could not access the Static Property" error for various modules.

thebluemountain commented 5 years ago

i have been trying to use the 0.17 version with markdown backend in a maven project. encountered same issue. adding the -X flag to get more messages, the issue is encountered in the analysis class. ... at java.lang.Class.forName(Class.java:264) at com.sebastian_daschner.jaxrs_analyzer.analysis.bytecode.collection.InstructionBuilder.getStaticValue(InstructionBuilder.java:295) ...

looking at the source, i see: ... // needs to load same class instance in Maven plugin, not from extended classloader final Class<?> clazz = Class.forName(containingClass.replace('/', '.')); field = clazz.getDeclaredField(name); ... not sure what it means though