11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4115296 26 * @summary synopsis: NoSuchObjectException not thrown for non-existent 27 * activatable objects 28 * @author Ann Wollrath 29 * 30 * @library ../../../testlibrary 31 * @build TestLibrary RMID ActivationLibrary 32 * ActivateMe NonExistentActivatable_Stub 33 * @run main/othervm/policy=security.policy/timeout=240 NonExistentActivatable 34 */ 35 36 import java.io.*; 37 import java.rmi.*; 38 import java.rmi.activation.*; 39 import java.rmi.server.*; 40 import java.rmi.registry.*; 41 import java.util.Properties; 42 43 public class NonExistentActivatable 44 extends Activatable 45 implements ActivateMe, Runnable 46 { 47 48 public NonExistentActivatable(ActivationID id, MarshalledObject obj) 49 throws ActivationException, RemoteException 50 { | 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4115296 26 * @summary synopsis: NoSuchObjectException not thrown for non-existent 27 * activatable objects 28 * @author Ann Wollrath 29 * 30 * @library ../../../testlibrary 31 * @modules java.rmi/sun.rmi.registry 32 * java.rmi/sun.rmi.server 33 * java.rmi/sun.rmi.transport 34 * java.rmi/sun.rmi.transport.tcp 35 * @build TestLibrary RMID ActivationLibrary 36 * ActivateMe NonExistentActivatable_Stub 37 * @run main/othervm/policy=security.policy/timeout=240 NonExistentActivatable 38 */ 39 40 import java.io.*; 41 import java.rmi.*; 42 import java.rmi.activation.*; 43 import java.rmi.server.*; 44 import java.rmi.registry.*; 45 import java.util.Properties; 46 47 public class NonExistentActivatable 48 extends Activatable 49 implements ActivateMe, Runnable 50 { 51 52 public NonExistentActivatable(ActivationID id, MarshalledObject obj) 53 throws ActivationException, RemoteException 54 { |