question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SubTypes including annotated class causes java.util.ConcurrentModificationException

See original GitHub issue

Using 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:

  1. Ignored the superfluous annotation or
  2. Provided a better error message

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
SamSuffitcommented, Nov 27, 2018

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 ?

1reaction
matteosilvcommented, Jul 4, 2019

Hi, we are having the same problem and i re-issued on the latest code the same pull request @SamSuffit issued 8 months ago

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found