RFR: JDK-8173605: Remove support for source and target 1.7 option in javac

Joe Darcy darcy at openjdk.org
Tue Aug 30 21:59:10 UTC 2022


On Tue, 30 Aug 2022 06:26:25 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Update to remove support for -source/-target/--release 7 from javac.
>> 
>> As seen in the PR, many test fails are affected. Further refactorings of javac's implementation that can be made from dropping 7 support are left as future work.
>
> test/jdk/java/lang/reflect/OldenCompilingWithDefaults.java line 28:
> 
>> 26:  * @bug 8009267
>> 27:  * @summary Verify uses of isAnnotationPresent compile under older source versions
>> 28:  * @compile OldenCompilingWithDefaults.java
> 
> I skimmed through the description of JDK-8009267 and I'm wondering if this test is of any value now.

Certainly less useful than it once was!

I can remove it in the next push.

-------------

PR: https://git.openjdk.org/jdk/pull/10074


More information about the compiler-dev mailing list