saeg / jaguar2

🐆
Eclipse Public License 1.0
3 stars 1 forks source link

javac/javadoc warnings #70

Open andrioli opened 8 months ago

andrioli commented 8 months ago

After 5c389dc (PR #69) we start to got some warnings:

Java 6, 7, 8 on example modules

[WARNING] bootstrap class path not set in conjunction with -source 1.6

Java 7 all modules

[WARNING] [options] bootstrap class path not set in conjunction with -source 1.6

Java 8 all modules

[WARNING] bootstrap class path not set in conjunction with -source 1.6

Java 9 all modules

[WARNING] bootstrap class path not set in conjunction with -source 1.6
[WARNING] source value 1.6 is obsolete and will be removed in a future release
[WARNING] target value 1.6 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

Java 10, 11 all modules

[WARNING] bootstrap class path not set in conjunction with -source 6
[WARNING] source value 6 is obsolete and will be removed in a future release
[WARNING] target value 1.6 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

Java 12,13,14,15,16,17,18,19 all modules

[WARNING] bootstrap class path not set in conjunction with -source 7
[WARNING] source value 7 is obsolete and will be removed in a future release
[WARNING] target value 7 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

Java 20, 21 all modules

[WARNING] bootstrap class path not set in conjunction with -source 8
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.

Originally posted by @andrioli in https://github.com/saeg/jaguar2/issues/69#issuecomment-1789245647

andrioli commented 8 months ago

We should also consider https://github.com/saeg/jaguar2/pull/62#issuecomment-1753668287 here.

Looks that the only missing warning is for Java 7:

Warning:  Javadoc Warnings
Warning: [WARNING] warning: [options] bootstrap class path not set in conjunction with -source 1.6

I'm planning to deprecated build support using JDK 7 tooling, I can live with this warning for a short period of time.

andrioli commented 8 months ago

After a68b3c9 (PR #79) no more warnings for Java 6 (JDK 6 toolchain) build.