-
Notifications
You must be signed in to change notification settings - Fork 181
ClassCastException with recent changes #269
Comments
I know what this is, it think: It's related to #247. To pick up the annotation from a type, it needs to be a Class. We just need an instanceof test. This was done for one case here: jaxrs-to-raml/jaxrs-parser/src/main/java/org/raml/jaxrs/parser/model/JerseyJaxRsEntity.java You could emergency fix it the same way. I'll fix this tonight. |
I tried but still hitting the same issue. Can you please fix it tonight and share the fix. Thanks for your quick response and fixes. I really appreciate it. |
I've pushed a quick fix. If this works for you, I'll make a general fix. It's on branch 2.0.1, don't forget. |
Now it throws on the below, Number of foreign imports: 1
Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class |
Ok: I went all over the code to cast stuff through a function. If I missed one, you'll be the first to know. |
It worked like a charm... thanks a ton. I really appreciate it. |
Hi Team,
I have patched the changes did for the issue "RuntimeException with Unknown type #256"
Then am getting the below exception,
Caused by: java.lang.ClassCastException: sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
at org.raml.emitter.IndentedAppendableEmitter.pickTypeHandler(IndentedAppendableEmitter.java:243)
at org.raml.emitter.IndentedAppendableEmitter.writeQueryParameters(IndentedAppendableEmitter.java:297)
at org.raml.emitter.IndentedAppendableEmitter.writeMethod(IndentedAppendableEmitter.java:195)
at org.raml.emitter.IndentedAppendableEmitter.writeResource(IndentedAppendableEmitter.java:118)
at org.raml.emitter.IndentedAppendableEmitter.writeResource(IndentedAppendableEmitter.java:122)
at org.raml.emitter.IndentedAppendableEmitter.writeApi(IndentedAppendableEmitter.java:86)
at org.raml.emitter.IndentedAppendableEmitter.emit(IndentedAppendableEmitter.java:71)
The text was updated successfully, but these errors were encountered: