RFR(S): 8011706: specjvm2008 test xml.transform gets array bound exception with c1

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Tue Apr 9 09:38:44 PDT 2013


Roland,

I would rewrite it as follows:
   ...
   } catch (NullPointerException ex) {
       throw new RuntimeException("TEST FAILED", e);
   }
   System.out.println("TEST PASSED");

Best regards,
Vladimir Ivanov

On 4/9/13 8:25 PM, Roland Westrelin wrote:
>> I have a comment regarding regression test: can you replace System.exit(97) with throwing an exception? Calling System.exit() "considered harmful" :-)
>
> Thanks for the correction. So should I not catch the NPE that's thrown in case of failure of the test or throw new Exception()?
>
> Roland.
>


More information about the hotspot-compiler-dev mailing list