corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java
changeset 18304 56149cf29cf9
parent 16136 f5a39cbcd82f
equal deleted inserted replaced
16817:da9a4c931281 18304:56149cf29cf9
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   107 import com.sun.corba.se.impl.orbutil.ORBUtility;
   107 import com.sun.corba.se.impl.orbutil.ORBUtility;
   108 import com.sun.corba.se.impl.logging.OMGSystemException;
   108 import com.sun.corba.se.impl.logging.OMGSystemException;
   109 import com.sun.corba.se.impl.util.Utility;
   109 import com.sun.corba.se.impl.util.Utility;
   110 import com.sun.corba.se.impl.util.IdentityHashtable;
   110 import com.sun.corba.se.impl.util.IdentityHashtable;
   111 import com.sun.corba.se.impl.util.JDKBridge;
   111 import com.sun.corba.se.impl.util.JDKBridge;
   112 import com.sun.corba.se.impl.orbutil.ORBClassLoader;
       
   113 import com.sun.corba.se.impl.logging.UtilSystemException;
   112 import com.sun.corba.se.impl.logging.UtilSystemException;
   114 import com.sun.corba.se.spi.logging.CORBALogDomains;
   113 import com.sun.corba.se.spi.logging.CORBALogDomains;
   115 import sun.corba.SharedSecrets;
   114 import sun.corba.SharedSecrets;
   116 import sun.corba.JavaCorbaAccess;
       
   117 
       
   118 
   115 
   119 /**
   116 /**
   120  * Provides utility methods that can be used by stubs and ties to
   117  * Provides utility methods that can be used by stubs and ties to
   121  * perform common operations.
   118  * perform common operations.
   122  */
   119  */
   261             }
   258             }
   262 
   259 
   263             return new MarshalException(message,inner);
   260             return new MarshalException(message,inner);
   264         } else if (ex instanceof ACTIVITY_REQUIRED) {
   261         } else if (ex instanceof ACTIVITY_REQUIRED) {
   265             try {
   262             try {
   266                 Class cl = ORBClassLoader.loadClass(
   263                 Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
   267                                "javax.activity.ActivityRequiredException");
   264                                "javax.activity.ActivityRequiredException");
   268                 Class[] params = new Class[2];
   265                 Class[] params = new Class[2];
   269                 params[0] = java.lang.String.class;
   266                 params[0] = java.lang.String.class;
   270                 params[1] = java.lang.Throwable.class;
   267                 params[1] = java.lang.Throwable.class;
   271                 Constructor cr = cl.getConstructor(params);
   268                 Constructor cr = cl.getConstructor(params);
   277                 utilWrapper.classNotFound(
   274                 utilWrapper.classNotFound(
   278                               e, "javax.activity.ActivityRequiredException");
   275                               e, "javax.activity.ActivityRequiredException");
   279             }
   276             }
   280         } else if (ex instanceof ACTIVITY_COMPLETED) {
   277         } else if (ex instanceof ACTIVITY_COMPLETED) {
   281             try {
   278             try {
   282                 Class cl = ORBClassLoader.loadClass(
   279                 Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
   283                                "javax.activity.ActivityCompletedException");
   280                                "javax.activity.ActivityCompletedException");
   284                 Class[] params = new Class[2];
   281                 Class[] params = new Class[2];
   285                 params[0] = java.lang.String.class;
   282                 params[0] = java.lang.String.class;
   286                 params[1] = java.lang.Throwable.class;
   283                 params[1] = java.lang.Throwable.class;
   287                 Constructor cr = cl.getConstructor(params);
   284                 Constructor cr = cl.getConstructor(params);
   293                   utilWrapper.classNotFound(
   290                   utilWrapper.classNotFound(
   294                                 e, "javax.activity.ActivityCompletedException");
   291                                 e, "javax.activity.ActivityCompletedException");
   295               }
   292               }
   296         } else if (ex instanceof INVALID_ACTIVITY) {
   293         } else if (ex instanceof INVALID_ACTIVITY) {
   297             try {
   294             try {
   298                 Class cl = ORBClassLoader.loadClass(
   295                 Class<?> cl = SharedSecrets.getJavaCorbaAccess().loadClass(
   299                                "javax.activity.InvalidActivityException");
   296                                "javax.activity.InvalidActivityException");
   300                 Class[] params = new Class[2];
   297                 Class[] params = new Class[2];
   301                 params[0] = java.lang.String.class;
   298                 params[0] = java.lang.String.class;
   302                 params[1] = java.lang.Throwable.class;
   299                 params[1] = java.lang.Throwable.class;
   303                 Constructor cr = cl.getConstructor(params);
   300                 Constructor cr = cl.getConstructor(params);