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
Compiler barfs on source referring to class which refers to an annotation class not on the classpath #5420
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5420?orig=1 |
@paulp said: |
Raman Gupta (rocketraman) said: |
@retronym said: |
@JamesIry said: |
@gkossakowski said: |
@retronym said: |
Given a simple java class with an annotation:
FooBean is already compiled and available on the compiler classpath.
when attempting to compile some scala code that instantiates/uses the FooBean class when the Foo annotation class is not accessible on the compiler's classpath but FooBean is, the scala compiler gives me a "Missing dependency" error:
This seems very similar to #1135, the fix for which should be in 2.9.1. This also seems similar to #5343, which is marked as Fixed and will be in 2.10.x. However, as per Jason Zaugg on the users mailing list, this issue will still occur even with the fix for #5343.
I have verified this by checking this on Scala 2.10.0.M1, and get the following error:
The text was updated successfully, but these errors were encountered: