SubTypes including annotated class causes java.util.ConcurrentModificationException
See original GitHub issueUsing Swagger 1.5.12
@ApiModel(subTypes = {OtherClass.class, SameClass.class})
public class SameClass {
...
Causes java.util.ConcurrentModificationException
in ModelResolver
Workaround of course is to not make that mistake in the annotation. However, tracking down the error took a long time, so I would suggest that Swagger either:
- Ignored the superfluous annotation or
- Provided a better error message
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
java.util.ConcurrentModificationException - DigitalOcean
java.util.ConcurrentModificationException is a very common exception when working with Java collection classes. Java Collection classes are ...
Read more >How to Avoid the Concurrent Modification Exception in Java
The ConcurrentModificationException in Java occurs when an object is attempted to be modified concurrently without permission.
Read more >Fix list for IBM WebSphere Application Server V8.5
IBM WebSphere Application Server provides periodic fixes for the base and Network Deployment editions of release V8.5. The following is a complete listing ......
Read more >FindBugs Bug Descriptions - SourceForge
This class defines a compareTo(...) method but inherits its equals() method from java.lang.Object . Generally, the value of compareTo should ...
Read more >java - ConcurrentModificationException with LinkedHashMap
java.util.ConcurrentModificationException : If there are any structural changes (additions, removals, rehashing, etc.) to the underlying list while the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello, I had the same problème. Si I make a PR which correct it. I’ll have to used it in my product, any idea if it will be included ? And if so then when the next 1.5 release is due ?
Hi, we are having the same problem and i re-issued on the latest code the same pull request @SamSuffit issued 8 months ago