<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
Thu Oct 29 22:32:37 UTC 2015


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: Task.java-00004a.zip
Type: application/x-zip-compressed
Size: 40447 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/beans-dev/attachments/20151029/0de75845/Task.java-00004a-0001.zip>


More information about the beans-dev mailing list