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
error: error while loading CLASS, Missing dependency 'class javax.jdo.spi.PersistenceCapable$$ObjectIdFieldSupplier', required by model.jar(com/mycompany/model/error/Error.class) #3682
Comments
Imported From: https://issues.scala-lang.org/browse/SI-3682?orig=1 |
Alain O'Dea (alainodea) said: |
Alain O'Dea (alainodea) said: An unfortunate, but passable workaround is to keep the unenhanced class files around to use during the build of dependent modules.
<property name="production.enhanced.dir" value="${production.classes.dir}/../enhanced" />
copy todir="${production.enhanced.dir}">
<fileset dir="${production.classes.dir}" />
</copy>
<jdodoclet ...>
<jdoc ...>
<jar destfile="dist/verafin-model-runtime.jar">
<fileset dir="${production.enhanced.dir}" />
<fileset dir="src" excludes="**/*.java **/*.jj **/*.scala **/*.groovy" />
</jar> |
Alain O'Dea (alainodea) said: |
Alain O'Dea (alainodea) said: I am willing to do further testing to determine root cause, but I need advice on debugging the Scala compiler. |
I get compile errors when compiling valid code against a Java model enhanced with JDO. I am confused at the errors because there is no direct usage of the package private static member interfaces in question from Scala. I understand Scala doesn't support using such interfaces from Scala code, but I am confused that the Scala compiler complains about them.
Here is the error I am getting:
Here is the Ant snippet I use to compile:
model.jar with the enhanced classes is on src.build.classpath.
I don't understand why scalac cares about dependencies of Java classes it can't resolve if they don't affect the knowledge to compile my Scala source.
Interestingly IntelliJ's Scala Plug-in is able to compile and run this code.
The text was updated successfully, but these errors were encountered: