RFR: 8241151: Incorrect lint warning for no definition of serialVersionUID in a record [v2]
Vicente Romero
vromero at openjdk.java.net
Tue Sep 29 16:06:15 UTC 2020
On Tue, 29 Sep 2020 00:05:25 GMT, PROgrm_JARvis <github.com+7693005+JarvisCraft at openjdk.org> wrote:
>> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>>
>> adding bug number to test and updating code as per review comments
>
> test/langtools/tools/javac/records/RecordCompilationTests.java line 151:
>
>> 149:
>> 150: public RecordCompilationTests() {
>> 151: useAP = System.getProperty("useAP", "false").equals("true");
>
> Can't `Boolean.getBoolean("useAP")` be used here instead?
it could be used, but the test could potentially be executed from command line too and there is no guarantee that the
system property will be there if executed from the command line
-------------
PR: https://git.openjdk.java.net/jdk/pull/363
More information about the compiler-dev
mailing list