Skip to content

Antlib support is broken with Java 9 #9140

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

Closed
snicoll opened this issue May 9, 2017 · 1 comment
Closed

Antlib support is broken with Java 9 #9140

snicoll opened this issue May 9, 2017 · 1 comment
Labels
status: duplicate A duplicate of another issue

Comments

@snicoll
Copy link
Member

snicoll commented May 9, 2017

The integration tests do not pass with JDK9

[INFO] --- maven-antrun-plugin:1.7:run (antunit) @ spring-boot-antlib ---
[INFO] Executing tasks

main:
[pathconvert] /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/spring-boot-antlib-2.0.0.BUILD-SNAPSHOT.jar
  [antunit] Build File: /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/build.xml
----------
1. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 1)
	/*
	^
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
----------
2. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 1)
	/*
	^
The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files
----------
3. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 1)
	/*
	^
The type java.lang.Class cannot be resolved. It is indirectly referenced from required .class files
----------
4. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 20)
	public class SampleApplication {
	             ^^^^^^^^^^^^^^^^^
Implicit super constructor Object() is undefined for default constructor. Must define an explicit constructor
----------
5. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 22)
	public static void main(String[] args) {
	                        ^^^^^^
String cannot be resolved to a type
----------
6. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 23)
	System.out.println(LocalDate.class.getSimpleName());
	^^^^^^
System cannot be resolved
----------
7. ERROR in /Users/snicoll/workspace/pivotal/spring-boot/spring-boot-tools/spring-boot-antlib/target/it/sample/src/main/java/org/test/SampleApplication.java (at line 23)
	System.out.println(LocalDate.class.getSimpleName());
	                   ^^^^^^^^^^^^^^^
Class cannot be resolved to a type
----------
7 problems (7 errors)
----------
@snicoll snicoll mentioned this issue May 9, 2017
3 tasks
snicoll added a commit to snicoll/spring-boot that referenced this issue May 9, 2017
snicoll added a commit to snicoll/spring-boot that referenced this issue May 10, 2017
wilkinsona pushed a commit that referenced this issue May 12, 2017
snicoll added a commit that referenced this issue May 15, 2017
snicoll added a commit that referenced this issue May 29, 2017
@snicoll snicoll changed the title Antlib support is broken with JDK9 Antlib support is broken with Java 9 Jun 15, 2017
snicoll added a commit that referenced this issue Jun 15, 2017
snicoll added a commit that referenced this issue Jul 28, 2017
snicoll added a commit that referenced this issue Aug 14, 2017
@snicoll
Copy link
Member Author

snicoll commented Aug 25, 2017

Duplicate of #10021

@snicoll snicoll marked this as a duplicate of #10021 Aug 25, 2017
@snicoll snicoll closed this as completed Aug 25, 2017
@snicoll snicoll added status: duplicate A duplicate of another issue and removed priority: normal labels Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants