Skip to content
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

fix(noclasspath): tolerates missing annotation types #820

Merged
merged 1 commit into from
Sep 7, 2016

Conversation

tdurieux
Copy link
Collaborator

@tdurieux tdurieux commented Sep 7, 2016

This PR does not contains any test because I did not succeed to reproduce the the failing scenario in the test environment.
The bug is related to this eclipse issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=388042

Stackstrace

org.eclipse.jdt.internal.compiler.problem.AbortCompilation: Pb(324) The type javax.annotation.Nullable cannot be resolved. It is indirectly referenced from required .class files
    at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:135)
    at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:201)
    at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2132)
    at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.isClassPathCorrect(ProblemReporter.java:4162)
    at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:59)
    at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:131)
    at org.eclipse.jdt.internal.compiler.lookup.UnresolvedAnnotationBinding.getAnnotationType(UnresolvedAnnotationBinding.java:24)
    at org.eclipse.jdt.core.dom.DefaultBindingResolver.getAnnotationInstance(DefaultBindingResolver.java:50)
    at org.eclipse.jdt.core.dom.MethodBinding.getParameterAnnotations(MethodBinding.java:153)
....

@tdurieux tdurieux force-pushed the noclasspath-missingtype branch from 8dbce74 to a0ec4ac Compare September 7, 2016 09:28
@msteinbeck
Copy link
Contributor

Oh nice, I encountered a similar bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants