View Issue Details

IDProjectCategoryView StatusLast Update
0005735AIAIpublic2017-09-04 19:21
ReporterFaux Assigned Toabma  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0005735: HughAI fails to build with Java 9
DescriptionJava 9 is due out in three weeks, and users might be picking it up some time soon after that. Debian/Ubuntu are planning to switch as soon as possible.

Currently the Spring build fails (in Debian with Java 9) as HughAI fails to build. Here are the errors:

hughai/ui/ConsoleJava.java:31: error: package javax.activation is not visible
import javax.activation.FileTypeMap;
            ^
  (package javax.activation is declared in module java.activation, which is not in the module graph)
hughai/ui/ConsoleEcma.java:31: error: package javax.activation is not visible
import javax.activation.FileTypeMap;
            ^
  (package javax.activation is declared in module java.activation, which is not in the module graph)


These appear to be imports that are unused, unless I've missed something? If they are removed, then maybe the build will get further and find other errors, or it might succeed, which would be awesome.

I don't have a build environment setup, just relying on the Debian builders here. There's some notes about javax.activation's removal on the Debian Wiki here: https://wiki.debian.org/Java/Java9Pitfalls
Steps To ReproduceInstall Java 9. For the next three weeks, these are still in pre-release, so would need to be installed from http://jdk.java.net/9/ , or from Debian/Ubuntu pre-release versions.

Attempt to build Spring with the HughAI enabled.
Tagsai, java9, linux

Activities

hokomoko

2017-08-31 00:00

developer   ~0018308

Probably removing it will be less work than trying to make it work on multiple versions.

abma

2017-08-31 12:07

administrator   ~0018313

Fix a2ddbcb6619b71d42f6e7ddf5e614f8e383770d1 committed to develop branch: update HughAI:
try to fix 0005735 (compile error with java 9), repo: spring changeset id: 8646

abma

2017-08-31 12:08

administrator   ~0018314

@Faux

does the change fix the compile error?

abma

2017-09-04 19:21

administrator   ~0018345

i assume so. if not, please reopen.

Issue History

Date Modified Username Field Change
2017-08-30 23:41 Faux New Issue
2017-08-30 23:41 Faux Tag Attached: ai
2017-08-30 23:41 Faux Tag Attached: linux
2017-08-30 23:41 Faux Tag Attached: java9
2017-08-31 00:00 hokomoko Note Added: 0018308
2017-08-31 12:07 abma Changeset attached => spring develop a2ddbcb6
2017-08-31 12:07 abma Note Added: 0018313
2017-08-31 12:07 abma Assigned To => abma
2017-08-31 12:07 abma Status new => resolved
2017-08-31 12:07 abma Resolution open => fixed
2017-08-31 12:08 abma Status resolved => feedback
2017-08-31 12:08 abma Resolution fixed => reopened
2017-08-31 12:08 abma Note Added: 0018314
2017-09-04 19:21 abma Status feedback => resolved
2017-09-04 19:21 abma Resolution reopened => fixed
2017-09-04 19:21 abma Note Added: 0018345