JDK 9 RFR of JDK-8036842: Remove unneeded/obsolete -source/-target options in javac tests, part 2
joe.darcy at oracle.com
Fri Mar 7 17:25:53 UTC 2014
On 03/07/2014 07:58 AM, Jonathan Gibbons wrote:
> On 03/06/2014 11:40 PM, Joe Darcy wrote:
>> Please review the webrev of changes for
>> JDK-8036842: Remove unneeded/obsolete -source/-target options in
>> javac tests, part 2
>> The langtools regression tests suite still passes with these changes
>> in place.
> I think the tests for 6464451 should be deleted as no longer interesting.
> you can remove the @compile/@run main and use the default action of
> the test
> do you need any -target
The bug being tested seemed to be "if you use -target, you get a crash"
so I left the use of -target in.
> The set of jdk versions should auto adapt to the current specification
> The comment of line 50 is out of date.
I changed the comment to say: " * 1. If both empty, version num is for
the current release"
Sonali, as the author of this test, please file an RFE to address Jon's
comment to make the test adapt to the JDK's version.
> The first @compile is redundant
Do you mean a different file? T6384542.java has been deleted.
> The test is redundant (equivalent to T6384542.java)
Keeping one of the files is probably sufficient :-)
More information about the compiler-dev