[rfc] make test ignored or valid only for specific JDK
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Apr 1 18:32:11 UTC 2015
On 04/01/2015 10:34 AM, Jiri Vanek wrote:
>>
>> * @requires jdk.version <= 7
>> leads to
>> test result: Error. Error evaluating expression: invalid numeric
>> value: 1.8
>>
>> Is it expected bahviour? I tried also with various spaces/nospace....
>>
>>
> ping? Is it expected? If not, I will provide you a fix.
>
> J.
With hindsight, I can see that this is to be expected, which is not to
say that it is good.
Going forward, I'm not sure what the correct fix will be, especially
given the upcoming JEP for semantic versioning.
http://openjdk.java.net/jeps/223
Before you provide a fix, I'd be interested to hear suggestions on what
the fix should be. One solution is that we should just allow numbers to
be represented as Double as well as Long. A different solution would be
to introduce a "version" type somehow.
-- Jon
More information about the jtreg-dev
mailing list