JTreg build fails with JDK 16
Sergei Ustimenko
fdesu at protonmail.com
Fri Jul 2 12:58:14 UTC 2021
Hi,
I've tried recently to build jtreg with the JDK 16 and came across compilation warnings
that inhibit the successful build:
```
...
../src/share/classes/com/sun/javatest/diff/SimpleReporter.java:90: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
new Integer((e > 0) && (nr > 0) ? 1 : 0),
^
../src/share/classes/com/sun/javatest/diff/SimpleReporter.java:91: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
new Integer(nr));
^
error: warnings found and -Werror specified
1 error
7 warnings
```
Is it something worth changing, what do you think? Would it be fine if I prepare a patch to fix it?
Regards,
Sergei
More information about the jtreg-dev
mailing list