Bug#874655: FTBFS with Java 9: The type java.lang.String cannot be resolved.

Chris West solo-debianbugs at goeswhere.com
Fri Sep 8 13:47:48 UTC 2017


Source: libspring-java
Version: 4.3.10
Severity: normal
User: debian-java at lists.debian.org
Usertags: default-java9

This package fails to build with default-jdk pointing to openjdk-9-jdk.
Please fix it, so that we can start the transition to Java 9.
The wiki has some common problems and their solutions:
https://wiki.debian.org/Java/Java9Pitfalls

No idea what's going on here, there's some possibility the issue is
inside gradle, but it appears to actually be breaking while running an
ant job. Upstream appear to have looked at Java 9 support multiple years
ago, but not recently? Some sub-components of Spring are looking at it
actively, so maybe the errors are going to get resolved:
https://github.com/spring-projects/spring-boot/issues/7226

I'm raising this issue mainly because I can't find this build log
excerpt anywhere:

[ant:iajc] /build/libspring-java-4.3.10/spring-aspects/src/main/java/org/springframework/transaction/aspectj/AbstractTransactionAspect.aj [error] The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
[ant:iajc] (no source information available)
[ant:iajc] /build/libspring-java-4.3.10/spring-aspects/src/main/java/org/springframework/transaction/aspectj/AbstractTransactionAspect.aj:48 [error] The hierarchy of the type AbstractTransactionAspect is inconsistent
[ant:iajc] public abstract aspect AbstractTransactionAspect extends TransactionAspectSupport implements DisposableBean {
[ant:iajc]                        ^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /build/libspring-java-4.3.10/spring-aspects/src/main/java/org/springframework/transaction/aspectj/AbstractTransactionAspect.aj:48 [error] The hierarchy of the type AbstractTransactionAspect is inconsistent
[ant:iajc] public abstract aspect AbstractTransactionAspect extends TransactionAspectSupport implements DisposableBean {
[ant:iajc]                        ^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] /build/libspring-java-4.3.10/spring-aspects/src/main/java/org/springframework/transaction/aspectj/AbstractTransactionAspect.aj:48 [error] The hierarchy of the type AbstractTransactionAspect is inconsistent
[ant:iajc] public abstract aspect AbstractTransactionAspect extends TransactionAspectSupport implements DisposableBean {
[ant:iajc]                        ^^^^^^^^^^^^^^^^^^^^^^^^
[ant:iajc] 
[ant:iajc] 4 errors
:spring-aspects:compileJava FAILED
:spring-aspects:compileJava (Thread[Task worker Thread 24,5,main]) completed. Took 2.583 secs.



Cheers,
Chris.



More information about the pkg-java-maintainers mailing list