corba/src/share/classes/com/sun/corba/se/impl/protocol/giopmsgheaders/MessageBase.java
changeset 18304 56149cf29cf9
parent 5555 b2b5ed3f0d0d
equal deleted inserted replaced
16817:da9a4c931281 18304:56149cf29cf9
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2004, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 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
    58 import com.sun.corba.se.impl.encoding.ByteBufferWithInfo;
    58 import com.sun.corba.se.impl.encoding.ByteBufferWithInfo;
    59 import com.sun.corba.se.impl.encoding.CDRInputStream_1_0;
    59 import com.sun.corba.se.impl.encoding.CDRInputStream_1_0;
    60 import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
    60 import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
    61 import com.sun.corba.se.impl.orbutil.ORBUtility;
    61 import com.sun.corba.se.impl.orbutil.ORBUtility;
    62 import com.sun.corba.se.impl.orbutil.ORBConstants;
    62 import com.sun.corba.se.impl.orbutil.ORBConstants;
    63 import com.sun.corba.se.impl.orbutil.ORBClassLoader;
       
    64 import com.sun.corba.se.impl.protocol.AddressingDispositionException;
    63 import com.sun.corba.se.impl.protocol.AddressingDispositionException;
       
    64 
       
    65 import sun.corba.SharedSecrets;
    65 
    66 
    66 /**
    67 /**
    67  * This class acts as the base class for the various GIOP message types. This
    68  * This class acts as the base class for the various GIOP message types. This
    68  * also serves as a factory to create various message types. We currently
    69  * also serves as a factory to create various message types. We currently
    69  * support GIOP 1.0, 1.1 and 1.2 message types.
    70  * support GIOP 1.0, 1.1 and 1.2 message types.
   907         String message, ORBUtilSystemException wrapper)
   908         String message, ORBUtilSystemException wrapper)
   908     {
   909     {
   909         SystemException sysEx = null;
   910         SystemException sysEx = null;
   910 
   911 
   911         try {
   912         try {
   912             Class clazz = ORBClassLoader.loadClass(exClassName);
   913             Class<?> clazz =
       
   914                 SharedSecrets.getJavaCorbaAccess().loadClass(exClassName);
   913             if (message == null) {
   915             if (message == null) {
   914                 sysEx = (SystemException) clazz.newInstance();
   916                 sysEx = (SystemException) clazz.newInstance();
   915             } else {
   917             } else {
   916                 Class[] types = { String.class };
   918                 Class[] types = { String.class };
   917                 Constructor constructor = clazz.getConstructor(types);
   919                 Constructor constructor = clazz.getConstructor(types);