8170839: failed test case is not checked in java/rmi/activation/ActivateFailedException/activateFails/ActivateFails.java
authormli
Wed, 07 Dec 2016 17:08:21 -0800
changeset 42448 67328babe531
parent 42447 36db92901ae9
child 42449 ec908b8eb5cc
8170839: failed test case is not checked in java/rmi/activation/ActivateFailedException/activateFails/ActivateFails.java Reviewed-by: rriggs
jdk/test/java/rmi/activation/ActivateFailedException/activateFails/ActivateFails.java
--- a/jdk/test/java/rmi/activation/ActivateFailedException/activateFails/ActivateFails.java	Fri Dec 02 13:22:16 2016 -0800
+++ b/jdk/test/java/rmi/activation/ActivateFailedException/activateFails/ActivateFails.java	Wed Dec 07 17:08:21 2016 -0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -140,7 +140,7 @@
             System.err.println("invoking method on activatable object...");
             try {
                 obj1.ping();
-
+                throw new RuntimeException("ActivateFailedException is expected");
             } catch (ActivateFailedException e) {
 
                 /*