<Beans Dev> Review Request for test bug JDK-813711 - Two java.beans tests need to be updated to work with JDK 9 modularized filesystem
Rocky Sloan
rocky.sloan at oracle.com
Mon Nov 2 18:47:27 UTC 2015
Hi Yuri,
I have updated the code in these tests to replace the System.exit calls
with RuntimeException().
Webrev attached.
Files modified at this point:
Task.java
TestConstructorFinder.java
TestMethodFinder.java
Thanks!
Rocky
On 10/30/2015 3:06 AM, Yuri Nesterenko wrote:
> Yes, Rocky, I guess you better change these exits to RuntimeExceptions
> and send the webrev to me. I'll post it as
> http://cr.openjdk.java.net/~yan/8137113/webrev.01, and you'll send
> a message to this list. That is the procedure here.
> Thank you!
>
> -yan
>
> On 10/30/2015 01:32 AM, Rocky Sloan wrote:
>> Hi Sergey,
>>
>> Thanks for the feedback.
>>
>> I changed it to catch the filesystem error(s) and throw a
>> RuntimeException() and tested it.
>>
>> The new version of the webrev is attached.
>>
>> I used System.exit() because it was used in other files included in this
>> test.
>>
>> Example in other files:
>>
>> Task.print(working + " out of " + alive + " threads are working");
>> if ((working == 0) && (++alarm == 10)) {
>> Task.print("DEADLOCK DETECTED");
>> System.exit(100);
>> }
>>
>> Should I change the other files to throw a RuntimeException() in a
>> similar fashion?
>>
>> Regards,
>>
>> Rocky
>>
>> On 10/27/2015 7:30 AM, Sergey Bylokhov wrote:
>>> Hi, Rocky.
>>> Please do not use System.exit() in the tests, just throw runtime
>>> exception if some unexpected errors occurred.
>>>
>>> On 23.10.15 23:05, Rocky Sloan wrote:
>>>> Hello,
>>>>
>>>> Please review the test fix for JDK9:
>>>>
>>>> bug: https://bugs.openjdk.java.net/browse/JDK-8137113
>>>> webrev: http://cr.openjdk.java.net/~yan/8137113/webrev.00
>>>>
>>>> Updated to use the new run-time modular filesystem in JDK9. Removed
>>>> JDK8 compatible code which accesses rt.jar.
>>>>
>>>> The test originally used the set of classes in rt.jar. These classes
>>>> are now spread throughout the new filesystem in JDK9, so the updated
>>>> code will access a representation of these classes from their new
>>>> locations.
>>>>
>>>> Thanks,
>>>>
>>>> Rocky
>>>
>>>
>>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XMLDecoder-8028054-00005.zip
Type: application/x-zip-compressed
Size: 83093 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20151102/93af52a0/XMLDecoder-8028054-00005-0001.zip>
More information about the beans-dev
mailing list