-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Remove jsr305 dependency #2782
Comments
Related issue: #2571 |
I thought this was resolved as part of JEP 261 |
@ben-manes is right. The problem has nothing to do with split packages because module guava {
requires jsr305; // javac fails: module not found: jsr305
...
} I think the problem is the Java 9 module naming rules. It discourages modules with terminal digits. And if I change the jar name to module guava {
requires jsr; // OK
...
} So, renaming jsr305.jar to jsr.jar can be a workaround. |
I think this can be closed since Java 9 now allows digits at the end of module names: http://openjdk.java.net/projects/jigsaw/spec/issues/#VersionsInModuleNames |
I tried to compile guava with Java 9 and failed. The problem is the jsr305 dependency. It contains a package
javax.annotation
which conflicts with the same package in thejava.base
module (javax.annotation.PostConstruct
annotation and others). Java 9 forbids split packages.Java 9 is not released yet, but we can already start thinking what to do. Is it possible to replace jsr305 annotations with similar annotations?
The text was updated successfully, but these errors were encountered: