Add java8-to-25 module: legacy Java 8 app run on JDK 8, 17 and 25, tool coverage, JVM flags, libraries, OpenRewrite and the fixed version
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6vDJ5fWY5uEZaJFNi
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
$ javac --release 8 ... # JDK 25, all sources except Tokens.java and App.java
|
||||
warning: [options] source value 8 is obsolete and will be removed in a future release
|
||||
warning: [options] target value 8 is obsolete and will be removed in a future release
|
||||
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
|
||||
3 warnings
|
||||
exit status: 0
|
||||
|
||||
$ ls r8/com/ankurm/legacy
|
||||
Guard$1.class
|
||||
Guard.class
|
||||
JavaVersion.class
|
||||
Order.class
|
||||
OrderXml.class
|
||||
Peek.class
|
||||
PluginScanner.class
|
||||
Report.class
|
||||
Rules.class
|
||||
SoapCheck.class
|
||||
StatusService.class
|
||||
Watchdog.class
|
||||
|
||||
$ javac --release 8 Tokens.java
|
||||
src/main/java/com/ankurm/legacy/Tokens.java:3: error: package sun.misc does not exist
|
||||
import sun.misc.BASE64Encoder;
|
||||
^
|
||||
src/main/java/com/ankurm/legacy/Tokens.java:8: error: cannot find symbol
|
||||
return new BASE64Encoder().encode(raw);
|
||||
^
|
||||
symbol: class BASE64Encoder
|
||||
location: class Tokens
|
||||
2 errors
|
||||
Reference in New Issue
Block a user