RFR: 8205493: OptionSmokeTest.java uses hard-coded release values

Joseph D. Darcy joe.darcy at oracle.com
Fri Jul 20 20:10:49 UTC 2018


Hi Vicente,

Looks good; thanks,

-Joe

On 7/20/2018 8:14 AM, Vicente Romero wrote:
> Hi Joe,
>
> Thanks for your comments. I have modified the test [3] and now I'm 
> only using min and max supported source version which can be read 
> directly from Source thus simplifying the code. What do you think?
>
> Vicente
>
> [3] http://cr.openjdk.java.net/~vromero/8205493/webrev.01/jdk.dev.patch
>
>
> On 07/19/2018 05:42 PM, joe darcy wrote:
>> Hi Vicente,
>>
>> The current patch looks fine. It would arguably be more robust if 
>> min, max, and premax were computed more directly based on information 
>> from Source. For example, run a loop over the supported source values 
>> such as
>>
>>             for(Source source :  Source.values()) {
>>                 if (source.isSupported())
>>                     supportedSources.add(source.name);
>>             }
>>
>> and then populate min, max, and premax accordingly.
>>
>> Thanks,
>>
>> -Joe
>>
>>
>> On 7/19/2018 10:27 AM, Vicente Romero wrote:
>>> Hi all,
>>>
>>> Please review the patch to fix [1] at [2]. The fix is basically 
>>> removing the test as it is not useful anymore,
>>>
>>> Thanks,
>>> Vicente
>>>
>>> [1] https://bugs.openjdk.java.net/browse/JDK-8206874
>>> [2] http://cr.openjdk.java.net/~vromero/8206874/webrev.00/jdk.dev.patch
>>
>



More information about the compiler-dev mailing list