sviperll / adt4j

adt4j - Algebraic Data Types for Java
BSD 3-Clause "New" or "Revised" License
143 stars 8 forks source link

Including adt4j on the annotation class path yields errors #44

Open talios opened 6 years ago

talios commented 6 years ago

Restructuring my build and when I add adt4j to the annotation class path I get the following error:

[ERROR] Unexpected exception. This seems like a bug in ADT4J, please report it at 
https://github.com/sviperll/adt4j/issues with the following details:
[ERROR]   com.sun.tools.javac.code.Symbol$CompletionFailure: class file for 
org.joda.convert.FromString not found

My project doesn't include joda-convert anywhere, I tried including it's jar also on the annotation classpath to no joy, and also adding it as a direct dependency of the maven-compiler-plugin but also no joy.

talios commented 6 years ago

Interesting - this worked fine on another one of my modules that included adt4j. I'll investigate further, it may be something on our end with how the projects laid out.

talios commented 6 years ago

Looks like added a direct dependency on joda-convert resolved the issue ( we ban transitive deps as a rule ) but it seems what/how adt4j does it's thing, didn't like the missing dep.

Maybe update the error message to include something like "check your build dependencies/classpath before reporting."