-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError: kotlin.collections.EmptySet #23
Comments
Animal Sniffer uses java serialization for signature data. I converted the code that generates the signatures to Kotlin and likely changed the actual type of this set /~https://github.com/mojohaus/animal-sniffer/blob/master/animal-sniffer/src/main/java/org/codehaus/mojo/animal_sniffer/Clazz.java#L50 in some cases. I will post a fix shortly. |
Got it, thanks! |
Because Animal Sniffer signatures are serialized using Java Serialization, we need to make sure that the types embedded into the signatures are available on the classpath when Animal Sniffer is run. Specifically, for Clazz.signatures, when the set is empty, Kotlin's toSet method will return a kotlin.collections.EmptySet. This change ensures that a plain HashSet is always used. Fixes #23.
Fixed in 0.6.1, thanks for reporting! |
Cool! I checked and it's working now, cheers. |
Hi!
I've just tried to bump up the signature version to the latest one
0.6.0
in this project but after doing so I get this error every time I try to run theanimalsnifferMain
task:It seems like some kotlin dependencies aren't available for the task to run properly. Any ideas on how it could be solved? I tried to add the kotlin std lib dependency here without luck so far.
The text was updated successfully, but these errors were encountered: