Merge jdk7-b94

Wed, 19 May 2010 12:25:44 -0700

author
lana
date
Wed, 19 May 2010 12:25:44 -0700
changeset 156
533c11186b44
parent 152
f2ff4938cecd
parent 155
f13708960583
child 157
06dbf406818c
child 158
91006f157c46

Merge

make/sun/corba/core/Makefile file | annotate | diff | comparison | revisions
make/sun/corba/core/mapfile-vers file | annotate | diff | comparison | revisions
src/share/classes/com/sun/corba/se/internal/io/IIOPInputStream.java file | annotate | diff | comparison | revisions
src/share/classes/com/sun/corba/se/internal/io/IIOPOutputStream.java file | annotate | diff | comparison | revisions
src/share/classes/com/sun/corba/se/internal/io/LibraryManager.java file | annotate | diff | comparison | revisions
src/share/classes/com/sun/corba/se/internal/io/ObjectStreamClass.java file | annotate | diff | comparison | revisions
src/share/native/com/sun/corba/se/internal/io/ioser.c file | annotate | diff | comparison | revisions
     1.1 --- a/make/sun/corba/Makefile	Thu May 13 13:22:09 2010 -0700
     1.2 +++ b/make/sun/corba/Makefile	Wed May 19 12:25:44 2010 -0700
     1.3 @@ -30,8 +30,7 @@
     1.4  BUILDDIR = ../..
     1.5  include $(BUILDDIR)/common/Defs.gmk
     1.6  
     1.7 -SUBDIRS = org core
     1.8 +SUBDIRS = org
     1.9  all build clean clobber::
    1.10  	$(SUBDIRS-loop)
    1.11 -	$(RM) -r $(CLASSBINDIR)/com/sun/corba/se/internal/io
    1.12  
     2.1 --- a/make/sun/corba/core/Makefile	Thu May 13 13:22:09 2010 -0700
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,101 +0,0 @@
     2.4 -#
     2.5 -# Copyright 1997-2005 Sun Microsystems, Inc.  All Rights Reserved.
     2.6 -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     2.7 -#
     2.8 -# This code is free software; you can redistribute it and/or modify it
     2.9 -# under the terms of the GNU General Public License version 2 only, as
    2.10 -# published by the Free Software Foundation.  Sun designates this
    2.11 -# particular file as subject to the "Classpath" exception as provided
    2.12 -# by Sun in the LICENSE file that accompanied this code.
    2.13 -#
    2.14 -# This code is distributed in the hope that it will be useful, but WITHOUT
    2.15 -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    2.16 -# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    2.17 -# version 2 for more details (a copy is included in the LICENSE file that
    2.18 -# accompanied this code).
    2.19 -#
    2.20 -# You should have received a copy of the GNU General Public License version
    2.21 -# 2 along with this work; if not, write to the Free Software Foundation,
    2.22 -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    2.23 -#
    2.24 -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    2.25 -# CA 95054 USA or visit www.sun.com if you need additional information or
    2.26 -# have any questions.
    2.27 -#
    2.28 -
    2.29 -#
    2.30 -# Makefile for building RMI/IIOP
    2.31 -#
    2.32 -
    2.33 -BUILDDIR = ../../..
    2.34 -PACKAGE = com.sun.corba.se.internal.io
    2.35 -PRODUCT = sun
    2.36 -LIBRARY = ioser12
    2.37 -include $(BUILDDIR)/common/Defs.gmk
    2.38 -
    2.39 -#
    2.40 -# Use mapfile
    2.41 -#
    2.42 -FILES_m = mapfile-vers
    2.43 -include $(BUILDDIR)/common/Mapfile-vers.gmk
    2.44 -
    2.45 -#
    2.46 -# Files to compile.
    2.47 -#
    2.48 -CORBA_JMK_DIRECTORY=$(TOPDIR)/make/com/sun/corba/minclude/
    2.49 -include $(CORBA_JMK_DIRECTORY)javax_rmi.jmk
    2.50 -include $(CORBA_JMK_DIRECTORY)javax_rmi_CORBA.jmk
    2.51 -include $(CORBA_JMK_DIRECTORY)javax_transaction.jmk
    2.52 -include $(CORBA_JMK_DIRECTORY)javax_activity.jmk
    2.53 -include $(CORBA_JMK_DIRECTORY)ioser_io.jmk
    2.54 -include $(CORBA_JMK_DIRECTORY)sun_corba.jmk
    2.55 -
    2.56 -ifdef STANDALONE_CORBA_WS
    2.57 -# FIXUP: What is this all about?
    2.58 -OTHER_LDFLAGS=-L$(BOOTDIR)/jre/lib/$(ARCH) -L$(BOOTDIR)/jre/lib/$(LIBARCH)/native_threads -ljvm
    2.59 -OTHER_INCLUDES+=-ICClassHeaders -I$(BOOTDIR)/include -I$(BOOTDIR)/include/$(PLATFORM)
    2.60 -else
    2.61 -OTHER_LDLIBS=$(JVMLIB)
    2.62 -OTHER_INCLUDES+=-ICClassHeaders -I$(BOOTDIR)/include -I$(BOOTDIR)/include/$(PLATFORM)
    2.63 -endif
    2.64 -
    2.65 -
    2.66 -FILES_c = ioser.c
    2.67 -
    2.68 -FILES_java = \
    2.69 -	$(javax_rmi_java) \
    2.70 -	$(javax_rmi_CORBA_java) \
    2.71 -	$(javax_transaction_java) \
    2.72 -	$(javax_activity_java) \
    2.73 -	$(IOSER_IO_java) \
    2.74 -	$(sun_corba_java)
    2.75 -
    2.76 -#
    2.77 -# Generate header files for.
    2.78 -#
    2.79 -FILES_export = \
    2.80 -	com/sun/corba/se/internal/io/IIOPInputStream.java \
    2.81 -	com/sun/corba/se/internal/io/IIOPOutputStream.java \
    2.82 -	com/sun/corba/se/internal/io/ObjectStreamClass.java \
    2.83 -	com/sun/corba/se/internal/io/LibraryManager.java 
    2.84 -#
    2.85 -# Resources
    2.86 -#
    2.87 -LOCALE_SET_DEFINITION = jre
    2.88 -RESOURCE_BUNDLES_PROPERTIES = \
    2.89 -      com/sun/corba/se/impl/orbutil/resources/sunorb.properties
    2.90 -
    2.91 -#
    2.92 -# Rules
    2.93 -#
    2.94 -include $(BUILDDIR)/common/Library.gmk
    2.95 -
    2.96 -#
    2.97 -# Extra clean rules because we build more than one package.
    2.98 -#
    2.99 -clean:: classheaders.clean objects.clean
   2.100 -	$(RM) -r $(CLASSBINDIR)/javax/rmi
   2.101 -	$(RM) -r $(CLASSBINDIR)/javax/transaction
   2.102 -	$(RM) -r $(CLASSBINDIR)/javax/activity
   2.103 -	$(RM) -r $(CLASSBINDIR)/com/sun/corba/se/impl
   2.104 -
     3.1 --- a/make/sun/corba/core/mapfile-vers	Thu May 13 13:22:09 2010 -0700
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,80 +0,0 @@
     3.4 -#
     3.5 -# Copyright 2005 Sun Microsystems, Inc.  All Rights Reserved.
     3.6 -# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3.7 -#
     3.8 -# This code is free software; you can redistribute it and/or modify it
     3.9 -# under the terms of the GNU General Public License version 2 only, as
    3.10 -# published by the Free Software Foundation.  Sun designates this
    3.11 -# particular file as subject to the "Classpath" exception as provided
    3.12 -# by Sun in the LICENSE file that accompanied this code.
    3.13 -#
    3.14 -# This code is distributed in the hope that it will be useful, but WITHOUT
    3.15 -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    3.16 -# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    3.17 -# version 2 for more details (a copy is included in the LICENSE file that
    3.18 -# accompanied this code).
    3.19 -#
    3.20 -# You should have received a copy of the GNU General Public License version
    3.21 -# 2 along with this work; if not, write to the Free Software Foundation,
    3.22 -# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    3.23 -#
    3.24 -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    3.25 -# CA 95054 USA or visit www.sun.com if you need additional information or
    3.26 -# have any questions.
    3.27 -#
    3.28 -
    3.29 -# Define library interface.
    3.30 -
    3.31 -SUNWprivate_1.1 {
    3.32 -	global:
    3.33 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_allocateNewObject;
    3.34 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_loadClass;
    3.35 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_readObject;
    3.36 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setBooleanField;
    3.37 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setBooleanFieldOpt;
    3.38 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setByteField;
    3.39 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setByteFieldOpt;
    3.40 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setCharField;
    3.41 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setCharFieldOpt;
    3.42 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setDoubleField;
    3.43 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setDoubleFieldOpt;
    3.44 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setFloatField;
    3.45 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setFloatFieldOpt;
    3.46 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setIntField;
    3.47 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setIntFieldOpt;
    3.48 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setLongField;
    3.49 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setLongFieldOpt;
    3.50 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setObjectField;
    3.51 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setObjectFieldOpt;
    3.52 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setShortField;
    3.53 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_setShortFieldOpt;
    3.54 -	    Java_com_sun_corba_se_internal_io_IIOPInputStream_throwExceptionType;
    3.55 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getBooleanField;
    3.56 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getBooleanFieldOpt;
    3.57 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getByteField;
    3.58 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getByteFieldOpt;
    3.59 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getCharField;
    3.60 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getCharFieldOpt;
    3.61 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getDoubleField;
    3.62 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getDoubleFieldOpt;
    3.63 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getFloatField;
    3.64 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getFloatFieldOpt;
    3.65 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getIntField;
    3.66 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getIntFieldOpt;
    3.67 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getLongField;
    3.68 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getLongFieldOpt;
    3.69 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getObjectField;
    3.70 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getObjectFieldOpt;
    3.71 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getShortField;
    3.72 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_getShortFieldOpt;
    3.73 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_throwExceptionType;
    3.74 -	    Java_com_sun_corba_se_internal_io_IIOPOutputStream_writeObject;
    3.75 -	    Java_com_sun_corba_se_internal_io_LibraryManager_getMajorVersion;
    3.76 -	    Java_com_sun_corba_se_internal_io_LibraryManager_getMinorVersion;
    3.77 -	    Java_com_sun_corba_se_internal_io_LibraryManager_setEnableOverride;
    3.78 -	    Java_com_sun_corba_se_internal_io_ObjectStreamClass_hasStaticInitializer;
    3.79 -	    Java_com_sun_corba_se_internal_io_ObjectStreamField_getFieldIDNative;
    3.80 -	    Java_com_sun_corba_se_internal_util_JDKClassLoader_specialLoadClass;
    3.81 -	local:
    3.82 -	    *;
    3.83 -};
     4.1 --- a/src/share/classes/com/sun/corba/se/internal/io/IIOPInputStream.java	Thu May 13 13:22:09 2010 -0700
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,66 +0,0 @@
     4.4 -/*
     4.5 - * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     4.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4.7 - *
     4.8 - * This code is free software; you can redistribute it and/or modify it
     4.9 - * under the terms of the GNU General Public License version 2 only, as
    4.10 - * published by the Free Software Foundation.  Sun designates this
    4.11 - * particular file as subject to the "Classpath" exception as provided
    4.12 - * by Sun in the LICENSE file that accompanied this code.
    4.13 - *
    4.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
    4.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    4.16 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    4.17 - * version 2 for more details (a copy is included in the LICENSE file that
    4.18 - * accompanied this code).
    4.19 - *
    4.20 - * You should have received a copy of the GNU General Public License version
    4.21 - * 2 along with this work; if not, write to the Free Software Foundation,
    4.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    4.23 - *
    4.24 - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    4.25 - * CA 95054 USA or visit www.sun.com if you need additional information or
    4.26 - * have any questions.
    4.27 - */
    4.28 -
    4.29 -package com.sun.corba.se.internal.io;
    4.30 -
    4.31 -public class IIOPInputStream {
    4.32 -    private static native Object allocateNewObject(Class aclass,
    4.33 -                                                   Class initclass)
    4.34 -        throws InstantiationException, IllegalAccessException;
    4.35 -    /* Create a pending exception.  This is needed to get around
    4.36 -     * the fact that the *Delegate methods do not explicitly
    4.37 -     * declare that they throw exceptions.
    4.38 -     *
    4.39 -     * This native methods creates an exception of the given type with
    4.40 -     * the given message string and posts it to the pending queue.
    4.41 -     */
    4.42 -    private static native void throwExceptionType(Class c, String message);
    4.43 -
    4.44 -    /* The following native methods of the form set*Field are used
    4.45 -     * to set private, protected, and package private fields
    4.46 -     * of an Object.
    4.47 -     */
    4.48 -    private static native void setObjectField(Object o, Class c, String fieldName, String fieldSig, Object v);
    4.49 -    private static native void setBooleanField(Object o, Class c, String fieldName, String fieldSig, boolean v);
    4.50 -    private static native void setByteField(Object o, Class c, String fieldName, String fieldSig, byte v);
    4.51 -    private static native void setCharField(Object o, Class c, String fieldName, String fieldSig, char v);
    4.52 -    private static native void setShortField(Object o, Class c, String fieldName, String fieldSig, short v);
    4.53 -    private static native void setIntField(Object o, Class c, String fieldName, String fieldSig, int v);
    4.54 -    private static native void setLongField(Object o, Class c, String fieldName, String fieldSig, long v);
    4.55 -    private static native void setFloatField(Object o, Class c, String fieldName, String fieldSig, float v);
    4.56 -    private static native void setDoubleField(Object o, Class c, String fieldName, String fieldSig, double v);
    4.57 -    private static native void readObject(Object obj, Class asClass, Object ois);
    4.58 -
    4.59 -    private static native void setObjectFieldOpt(Object o, long fieldID, Object v);
    4.60 -    private static native void setBooleanFieldOpt(Object o, long fieldID, boolean v);
    4.61 -    private static native void setByteFieldOpt(Object o, long fieldID, byte v);
    4.62 -    private static native void setCharFieldOpt(Object o, long fieldID, char v);
    4.63 -    private static native void setShortFieldOpt(Object o, long fieldID, short v);
    4.64 -    private static native void setIntFieldOpt(Object o, long fieldID, int v);
    4.65 -    private static native void setLongFieldOpt(Object o, long fieldID, long v);
    4.66 -
    4.67 -    private static native void setFloatFieldOpt(Object o, long fieldID, float v);
    4.68 -    private static native void setDoubleFieldOpt(Object o, long fieldID, double v);
    4.69 -}
     5.1 --- a/src/share/classes/com/sun/corba/se/internal/io/IIOPOutputStream.java	Thu May 13 13:22:09 2010 -0700
     5.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.3 @@ -1,51 +0,0 @@
     5.4 -/*
     5.5 - * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     5.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5.7 - *
     5.8 - * This code is free software; you can redistribute it and/or modify it
     5.9 - * under the terms of the GNU General Public License version 2 only, as
    5.10 - * published by the Free Software Foundation.  Sun designates this
    5.11 - * particular file as subject to the "Classpath" exception as provided
    5.12 - * by Sun in the LICENSE file that accompanied this code.
    5.13 - *
    5.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
    5.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    5.16 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    5.17 - * version 2 for more details (a copy is included in the LICENSE file that
    5.18 - * accompanied this code).
    5.19 - *
    5.20 - * You should have received a copy of the GNU General Public License version
    5.21 - * 2 along with this work; if not, write to the Free Software Foundation,
    5.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    5.23 - *
    5.24 - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    5.25 - * CA 95054 USA or visit www.sun.com if you need additional information or
    5.26 - * have any questions.
    5.27 - */
    5.28 -
    5.29 -package com.sun.corba.se.internal.io;
    5.30 -
    5.31 -
    5.32 -public class IIOPOutputStream {
    5.33 -
    5.34 -    /* Create a pending exception.  This is needed to get around
    5.35 -     * the fact that the *Delegate methods do not explicitly
    5.36 -     * declare that they throw exceptions.
    5.37 -     *
    5.38 -     * This native method creates an exception of the given type with
    5.39 -     * the given message string and posts it to the pending queue.
    5.40 -     */
    5.41 -    private static native void throwExceptionType(Class c, String message);
    5.42 -
    5.43 -    private static native Object getObjectFieldOpt(Object o, long fieldID);
    5.44 -    private static native boolean getBooleanFieldOpt(Object o, long fieldID);
    5.45 -    private static native byte getByteFieldOpt(Object o, long fieldID);
    5.46 -    private static native char getCharFieldOpt(Object o, long fieldID);
    5.47 -    private static native short getShortFieldOpt(Object o, long fieldID);
    5.48 -    private static native int getIntFieldOpt(Object o, long fieldID);
    5.49 -    private static native long getLongFieldOpt(Object o, long fieldID);
    5.50 -    private static native float getFloatFieldOpt(Object o, long fieldID);
    5.51 -    private static native double getDoubleFieldOpt(Object o, long fieldID);
    5.52 -
    5.53 -    private static native void writeObject(Object obj, Class asClass, Object oos) throws IllegalAccessException;
    5.54 -}
     6.1 --- a/src/share/classes/com/sun/corba/se/internal/io/LibraryManager.java	Thu May 13 13:22:09 2010 -0700
     6.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.3 @@ -1,41 +0,0 @@
     6.4 -/*
     6.5 - * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     6.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     6.7 - *
     6.8 - * This code is free software; you can redistribute it and/or modify it
     6.9 - * under the terms of the GNU General Public License version 2 only, as
    6.10 - * published by the Free Software Foundation.  Sun designates this
    6.11 - * particular file as subject to the "Classpath" exception as provided
    6.12 - * by Sun in the LICENSE file that accompanied this code.
    6.13 - *
    6.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
    6.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    6.16 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    6.17 - * version 2 for more details (a copy is included in the LICENSE file that
    6.18 - * accompanied this code).
    6.19 - *
    6.20 - * You should have received a copy of the GNU General Public License version
    6.21 - * 2 along with this work; if not, write to the Free Software Foundation,
    6.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    6.23 - *
    6.24 - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    6.25 - * CA 95054 USA or visit www.sun.com if you need additional information or
    6.26 - * have any questions.
    6.27 - */
    6.28 -/*
    6.29 - * Licensed Materials - Property of IBM
    6.30 - * RMI-IIOP v1.0
    6.31 - * Copyright IBM Corp. 1998 1999  All Rights Reserved
    6.32 - *
    6.33 - */
    6.34 -
    6.35 -package com.sun.corba.se.internal.io;
    6.36 -
    6.37 -public class LibraryManager
    6.38 -{
    6.39 -    native private static int getMajorVersion();
    6.40 -
    6.41 -    native private static int getMinorVersion();
    6.42 -
    6.43 -    private static native boolean setEnableOverride(Class targetClass, Object instance);
    6.44 -}
     7.1 --- a/src/share/classes/com/sun/corba/se/internal/io/ObjectStreamClass.java	Thu May 13 13:22:09 2010 -0700
     7.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.3 @@ -1,33 +0,0 @@
     7.4 -/*
     7.5 - * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
     7.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     7.7 - *
     7.8 - * This code is free software; you can redistribute it and/or modify it
     7.9 - * under the terms of the GNU General Public License version 2 only, as
    7.10 - * published by the Free Software Foundation.  Sun designates this
    7.11 - * particular file as subject to the "Classpath" exception as provided
    7.12 - * by Sun in the LICENSE file that accompanied this code.
    7.13 - *
    7.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
    7.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    7.16 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    7.17 - * version 2 for more details (a copy is included in the LICENSE file that
    7.18 - * accompanied this code).
    7.19 - *
    7.20 - * You should have received a copy of the GNU General Public License version
    7.21 - * 2 along with this work; if not, write to the Free Software Foundation,
    7.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    7.23 - *
    7.24 - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    7.25 - * CA 95054 USA or visit www.sun.com if you need additional information or
    7.26 - * have any questions.
    7.27 - */
    7.28 -
    7.29 -package com.sun.corba.se.internal.io;
    7.30 -
    7.31 -public class ObjectStreamClass {
    7.32 -
    7.33 -    /* Find out if the class has a static class initializer <clinit> */
    7.34 -    private static native boolean hasStaticInitializer(Class cl);
    7.35 -
    7.36 -}
     8.1 --- a/src/share/native/com/sun/corba/se/internal/io/ioser.c	Thu May 13 13:22:09 2010 -0700
     8.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.3 @@ -1,862 +0,0 @@
     8.4 -/*
     8.5 - * Copyright 1998-2002 Sun Microsystems, Inc.  All Rights Reserved.
     8.6 - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     8.7 - *
     8.8 - * This code is free software; you can redistribute it and/or modify it
     8.9 - * under the terms of the GNU General Public License version 2 only, as
    8.10 - * published by the Free Software Foundation.  Sun designates this
    8.11 - * particular file as subject to the "Classpath" exception as provided
    8.12 - * by Sun in the LICENSE file that accompanied this code.
    8.13 - *
    8.14 - * This code is distributed in the hope that it will be useful, but WITHOUT
    8.15 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    8.16 - * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    8.17 - * version 2 for more details (a copy is included in the LICENSE file that
    8.18 - * accompanied this code).
    8.19 - *
    8.20 - * You should have received a copy of the GNU General Public License version
    8.21 - * 2 along with this work; if not, write to the Free Software Foundation,
    8.22 - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    8.23 - *
    8.24 - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    8.25 - * CA 95054 USA or visit www.sun.com if you need additional information or
    8.26 - * have any questions.
    8.27 - */
    8.28 -
    8.29 -#include "jni.h"
    8.30 -
    8.31 -#include "com_sun_corba_se_internal_io_IIOPInputStream.h"
    8.32 -#include "com_sun_corba_se_internal_io_IIOPOutputStream.h"
    8.33 -#include "com_sun_corba_se_internal_io_ObjectStreamClass.h"
    8.34 -#include "com_sun_corba_se_internal_io_LibraryManager.h"
    8.35 -
    8.36 -#define MAJOR_VERSION   1
    8.37 -#define MINOR_VERSION   11  /*sun.4296963  ibm.11861*/
    8.38 -
    8.39 -static char *copyright[] = {
    8.40 -    "Licensed Materials - Property of IBM and Sun",
    8.41 -    "RMI-IIOP v1.0",
    8.42 -    "Copyright IBM Corp. 1998 1999  All Rights Reserved",
    8.43 -    "Copyright 1998-1999 Sun Microsystems, Inc. 901 San Antonio Road,",
    8.44 -    "Palo Alto, CA  94303, U.S.A.  All rights reserved."
    8.45 -};
    8.46 -
    8.47 -/*
    8.48 - * Class:     com_sun_corba_se_internal_io_LibraryManager
    8.49 - * Method:    getMajorVersion
    8.50 - * Signature: ()I
    8.51 - */
    8.52 -JNIEXPORT jint JNICALL Java_com_sun_corba_se_internal_io_LibraryManager_getMajorVersion
    8.53 -  (JNIEnv *env, jclass this)
    8.54 -{
    8.55 -    return MAJOR_VERSION;
    8.56 -}
    8.57 -
    8.58 -/*
    8.59 - * Class:     com_sun_corba_se_internal_io_LibraryManager
    8.60 - * Method:    getMinorVersion
    8.61 - * Signature: ()I
    8.62 - */
    8.63 -JNIEXPORT jint JNICALL Java_com_sun_corba_se_internal_io_LibraryManager_getMinorVersion
    8.64 -  (JNIEnv *env, jclass this)
    8.65 -{
    8.66 -    return MINOR_VERSION;
    8.67 -}
    8.68 -
    8.69 -/*
    8.70 - * Class:     com_sun_corba_se_internal_io_LibraryManager
    8.71 - * Method:    setEnableOverride
    8.72 - * Signature: (Ljava/lang/Class;Ljava/lang/Object;)Z
    8.73 - */
    8.74 -JNIEXPORT jboolean JNICALL Java_com_sun_corba_se_internal_io_LibraryManager_setEnableOverride
    8.75 -  (JNIEnv *env, jclass this, jclass targetClass, jobject instance)
    8.76 -{
    8.77 -    jfieldID fieldID = (*env)->GetFieldID(env, targetClass,
    8.78 -        "enableSubclassImplementation",
    8.79 -        "Z");
    8.80 -    (*env)->SetBooleanField(env, instance, fieldID, JNI_TRUE);
    8.81 -
    8.82 -    return (*env)->GetBooleanField(env, instance, fieldID);
    8.83 -
    8.84 -}
    8.85 -
    8.86 -/*
    8.87 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
    8.88 - * Method:    throwExceptionType
    8.89 - * Signature: (Ljava/lang/Class;Ljava/lang/String;)V
    8.90 - *
    8.91 - * Construct and throw the given exception using the given message.
    8.92 - */
    8.93 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_throwExceptionType
    8.94 -  (JNIEnv *env, jobject obj, jclass c, jstring mssg)
    8.95 -{
    8.96 -    const char* strMsg = (*env)->GetStringUTFChars(env, mssg, 0L);
    8.97 -    (*env)->ThrowNew(env, c, strMsg);
    8.98 -    (*env)->ReleaseStringUTFChars(env, mssg, strMsg);
    8.99 -    return;
   8.100 -}
   8.101 -
   8.102 -/*
   8.103 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.104 - * Method:    throwExceptionType
   8.105 - * Signature: (Ljava/lang/Class;Ljava/lang/String;)V
   8.106 - *
   8.107 - * Construct and throw the given exception using the given message.
   8.108 - */
   8.109 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_throwExceptionType
   8.110 -  (JNIEnv *env, jobject obj, jclass c, jstring mssg)
   8.111 -{
   8.112 -    const char* strMsg = (*env)->GetStringUTFChars(env, mssg, 0L);
   8.113 -    (*env)->ThrowNew(env, c, strMsg);
   8.114 -    (*env)->ReleaseStringUTFChars(env, mssg, strMsg);
   8.115 -    return;
   8.116 -
   8.117 -}
   8.118 -
   8.119 -JNIEXPORT jobject JNICALL
   8.120 -Java_com_sun_corba_se_internal_io_IIOPInputStream_allocateNewObject (JNIEnv * env,
   8.121 -                                                  jclass this,
   8.122 -                                                  jclass aclass,
   8.123 -                                                  jclass initclass)
   8.124 -{
   8.125 -    jmethodID cid;
   8.126 -
   8.127 -    /**
   8.128 -     * Get the method ID of the default constructor of
   8.129 -     * initclass, which is the first non-Serializable
   8.130 -     * superclass.
   8.131 -     */
   8.132 -    cid = (*env)->GetMethodID(env, initclass, "<init>", "()V");
   8.133 -
   8.134 -    if (cid == NULL) {
   8.135 -        /* exception thrown */
   8.136 -        return NULL;
   8.137 -    }
   8.138 -
   8.139 -    /**
   8.140 -     * Allocates an object of type aclass and calls the
   8.141 -     * initclass default constructor (found above)
   8.142 -     */
   8.143 -    return (*env)->NewObject(env, aclass, cid);
   8.144 -}
   8.145 -
   8.146 -
   8.147 -/* DEPRECATED - This is no longer used.
   8.148 - *
   8.149 - * Find the first class loader up the stack and use its class to call
   8.150 - * FindClassFromClass to resolve the specified class
   8.151 - * name.  The code is similar to that of java.lang.currentClassLoader
   8.152 - */
   8.153 -JNIEXPORT jclass JNICALL
   8.154 -Java_com_sun_corba_se_internal_io_IIOPInputStream_loadClass (JNIEnv * env,
   8.155 -                                           jobject this,
   8.156 -                                           jclass curClass,
   8.157 -                                           jstring currClassName)
   8.158 -{
   8.159 -    return 0L;
   8.160 -}
   8.161 -
   8.162 -#include "com_sun_corba_se_internal_io_ObjectStreamClass.h"
   8.163 -
   8.164 -/*
   8.165 - * Class:     com_sun_corba_se_internal_io_ObjectStreamClass
   8.166 - * Method:    hasStaticInitializer
   8.167 - * Signature: (Ljava/lang/Class;)Z
   8.168 - *
   8.169 - * If the method <clinit> ()V is defined true is returned.
   8.170 - * Otherwise, false is returned.
   8.171 - */
   8.172 -JNIEXPORT jboolean JNICALL
   8.173 -Java_com_sun_corba_se_internal_io_ObjectStreamClass_hasStaticInitializer(JNIEnv *env, jclass this,
   8.174 -                                                    jclass clazz)
   8.175 -{
   8.176 -    jclass superclazz = NULL;
   8.177 -    jmethodID superclinit = NULL;
   8.178 -
   8.179 -    jmethodID clinit = (*env)->GetStaticMethodID(env, clazz,
   8.180 -                                                 "<clinit>", "()V");
   8.181 -    if (clinit == NULL || (*env)->ExceptionOccurred(env)) {
   8.182 -        (*env)->ExceptionClear(env);
   8.183 -        return 0;
   8.184 -    }
   8.185 -
   8.186 -    /* Ask the superclass the same question
   8.187 -     * If the answer is the same then the constructor is from a superclass.
   8.188 -     * If different, it's really defined on the subclass.
   8.189 -     */
   8.190 -    superclazz = (*env)->GetSuperclass(env, clazz);
   8.191 -    if ((*env)->ExceptionOccurred(env)) {
   8.192 -        return 0;
   8.193 -    }
   8.194 -
   8.195 -    if (superclazz == NULL)
   8.196 -        return 1;
   8.197 -
   8.198 -    superclinit = (*env)->GetStaticMethodID(env, superclazz,
   8.199 -                                            "<clinit>", "()V");
   8.200 -    if ((*env)->ExceptionOccurred(env)) {
   8.201 -        (*env)->ExceptionClear(env);
   8.202 -        superclinit = NULL;
   8.203 -    }
   8.204 -
   8.205 -    return (superclinit != clinit);
   8.206 -}
   8.207 -
   8.208 -/*
   8.209 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.210 - * Method:    readObject
   8.211 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Object;)V
   8.212 - */
   8.213 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_readObject
   8.214 -  (JNIEnv *env, jobject this, jobject obj, jclass cls, jobject ois)
   8.215 -{
   8.216 -    jthrowable exc;
   8.217 -    jclass newExcCls;
   8.218 -    jmethodID mid = (*env)->GetMethodID(env, cls, "readObject", "(Ljava/io/ObjectInputStream;)V");
   8.219 -    if (mid == 0)
   8.220 -                return;
   8.221 -    (*env)->CallNonvirtualVoidMethod(env, obj, cls, mid, ois);
   8.222 -
   8.223 -    exc = (*env)->ExceptionOccurred(env);
   8.224 -    if (exc) {
   8.225 -        (*env)->ExceptionDescribe(env);
   8.226 -        (*env)->ExceptionClear(env);
   8.227 -
   8.228 -        newExcCls = (*env)->FindClass(env, "java/io/IOException");
   8.229 -        if (newExcCls == 0) /* Unable to find the new exception class, give up. */
   8.230 -          return;
   8.231 -        (*env)->ThrowNew(env, newExcCls, "Serializable readObject method failed internally");
   8.232 -        return;
   8.233 -    }
   8.234 -
   8.235 -    return;
   8.236 -}
   8.237 -
   8.238 -/*
   8.239 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.240 - * Method:    writeObject
   8.241 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/Object;)V
   8.242 - */
   8.243 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_writeObject
   8.244 -  (JNIEnv *env, jobject this, jobject obj, jclass cls, jobject oos)
   8.245 -{
   8.246 -    jthrowable exc;
   8.247 -    jclass newExcCls;
   8.248 -    jmethodID mid = (*env)->GetMethodID(env, cls, "writeObject", "(Ljava/io/ObjectOutputStream;)V");
   8.249 -    if (mid == 0)
   8.250 -                return;
   8.251 -    (*env)->CallNonvirtualVoidMethod(env, obj, cls, mid, oos);
   8.252 -
   8.253 -    exc = (*env)->ExceptionOccurred(env);
   8.254 -    if (exc) {
   8.255 -        (*env)->ExceptionDescribe(env);
   8.256 -        (*env)->ExceptionClear(env);
   8.257 -
   8.258 -        newExcCls = (*env)->FindClass(env, "java/io/IOException");
   8.259 -        if (newExcCls == 0) /* Unable to find the new exception class, give up. */
   8.260 -          return;
   8.261 -        (*env)->ThrowNew(env, newExcCls, "Serializable readObject method failed internally");
   8.262 -        return;
   8.263 -    }
   8.264 -
   8.265 -    return;
   8.266 -
   8.267 -}
   8.268 -
   8.269 -
   8.270 -/*
   8.271 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.272 - * Method:    getObjectField
   8.273 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;
   8.274 - */
   8.275 -JNIEXPORT jobject JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getObjectField
   8.276 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.277 -{
   8.278 -    const char *strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.279 -    const char *strFieldSig  = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.280 -
   8.281 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.282 -
   8.283 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.284 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.285 -
   8.286 -    return (*env)->GetObjectField(env, obj, fieldID);
   8.287 -}
   8.288 -
   8.289 -/*
   8.290 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.291 - * Method:    getBooleanField
   8.292 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)Z
   8.293 - */
   8.294 -JNIEXPORT jboolean JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getBooleanField
   8.295 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.296 -{
   8.297 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.298 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.299 -
   8.300 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.301 -
   8.302 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.303 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.304 -
   8.305 -    return (*env)->GetBooleanField(env, obj, fieldID);
   8.306 -}
   8.307 -
   8.308 -/*
   8.309 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.310 - * Method:    getByteField
   8.311 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)B
   8.312 - */
   8.313 -JNIEXPORT jbyte JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getByteField
   8.314 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.315 -{
   8.316 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.317 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.318 -
   8.319 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.320 -
   8.321 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.322 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.323 -
   8.324 -    return (*env)->GetByteField(env, obj, fieldID);
   8.325 -
   8.326 -}
   8.327 -
   8.328 -/*
   8.329 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.330 - * Method:    getCharField
   8.331 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)C
   8.332 - */
   8.333 -JNIEXPORT jchar JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getCharField
   8.334 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.335 -{
   8.336 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.337 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.338 -
   8.339 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.340 -
   8.341 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.342 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.343 -
   8.344 -    return (*env)->GetCharField(env, obj, fieldID);
   8.345 -}
   8.346 -
   8.347 -/*
   8.348 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.349 - * Method:    getShortField
   8.350 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)S
   8.351 - */
   8.352 -JNIEXPORT jshort JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getShortField
   8.353 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.354 -{
   8.355 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.356 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.357 -
   8.358 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.359 -
   8.360 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.361 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.362 -
   8.363 -    return (*env)->GetShortField(env, obj, fieldID);
   8.364 -}
   8.365 -
   8.366 -/*
   8.367 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.368 - * Method:    getIntField
   8.369 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)I
   8.370 - */
   8.371 -JNIEXPORT jint JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getIntField
   8.372 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.373 -{
   8.374 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.375 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.376 -
   8.377 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.378 -
   8.379 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.380 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.381 -
   8.382 -    return (*env)->GetIntField(env, obj, fieldID);
   8.383 -}
   8.384 -
   8.385 -/*
   8.386 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.387 - * Method:    getLongField
   8.388 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J
   8.389 - */
   8.390 -JNIEXPORT jlong JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getLongField
   8.391 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.392 -{
   8.393 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.394 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.395 -
   8.396 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.397 -
   8.398 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.399 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.400 -
   8.401 -    return (*env)->GetLongField(env, obj, fieldID);
   8.402 -}
   8.403 -
   8.404 -/*
   8.405 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.406 - * Method:    getFloatField
   8.407 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)F
   8.408 - */
   8.409 -JNIEXPORT jfloat JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getFloatField
   8.410 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.411 -{
   8.412 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.413 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.414 -
   8.415 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.416 -
   8.417 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.418 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.419 -
   8.420 -    return (*env)->GetFloatField(env, obj, fieldID);
   8.421 -}
   8.422 -
   8.423 -/*
   8.424 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.425 - * Method:    getDoubleField
   8.426 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)D
   8.427 - */
   8.428 -JNIEXPORT jdouble JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getDoubleField
   8.429 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig)
   8.430 -{
   8.431 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.432 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.433 -
   8.434 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.435 -
   8.436 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.437 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.438 -
   8.439 -    return (*env)->GetDoubleField(env, obj, fieldID);
   8.440 -}
   8.441 -
   8.442 -
   8.443 -
   8.444 -/*
   8.445 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.446 - * Method:    setObjectField
   8.447 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
   8.448 - */
   8.449 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setObjectField
   8.450 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jobject v)
   8.451 -{
   8.452 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.453 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.454 -
   8.455 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.456 -
   8.457 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.458 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.459 -
   8.460 -    (*env)->SetObjectField(env, obj, fieldID, v);
   8.461 -}
   8.462 -
   8.463 -/*
   8.464 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.465 - * Method:    setBooleanField
   8.466 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;Z)V
   8.467 - */
   8.468 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setBooleanField
   8.469 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jboolean v)
   8.470 -{
   8.471 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.472 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.473 -
   8.474 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.475 -
   8.476 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.477 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.478 -
   8.479 -    (*env)->SetBooleanField(env, obj, fieldID, v);
   8.480 -}
   8.481 -
   8.482 -/*
   8.483 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.484 - * Method:    setByteField
   8.485 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;B)V
   8.486 - */
   8.487 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setByteField
   8.488 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jbyte v)
   8.489 -{
   8.490 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.491 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.492 -
   8.493 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.494 -
   8.495 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.496 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.497 -
   8.498 -    (*env)->SetByteField(env, obj, fieldID, v);
   8.499 -}
   8.500 -
   8.501 -/*
   8.502 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.503 - * Method:    setCharField
   8.504 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;C)V
   8.505 - */
   8.506 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setCharField
   8.507 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jchar v)
   8.508 -{
   8.509 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.510 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.511 -
   8.512 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.513 -
   8.514 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.515 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.516 -
   8.517 -    (*env)->SetCharField(env, obj, fieldID, v);
   8.518 -}
   8.519 -
   8.520 -/*
   8.521 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.522 - * Method:    setShortField
   8.523 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;S)V
   8.524 - */
   8.525 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setShortField
   8.526 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jshort v)
   8.527 -{
   8.528 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.529 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.530 -
   8.531 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.532 -
   8.533 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.534 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.535 -
   8.536 -    (*env)->SetShortField(env, obj, fieldID, v);
   8.537 -}
   8.538 -
   8.539 -/*
   8.540 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.541 - * Method:    setIntField
   8.542 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)V
   8.543 - */
   8.544 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setIntField
   8.545 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jint v)
   8.546 -{
   8.547 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.548 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.549 -
   8.550 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.551 -
   8.552 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.553 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.554 -
   8.555 -    (*env)->SetIntField(env, obj, fieldID, v);
   8.556 -}
   8.557 -
   8.558 -/*
   8.559 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.560 - * Method:    setLongField
   8.561 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;J)V
   8.562 - */
   8.563 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setLongField
   8.564 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jlong v)
   8.565 -{
   8.566 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.567 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.568 -
   8.569 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.570 -
   8.571 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.572 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.573 -
   8.574 -    (*env)->SetLongField(env, obj, fieldID, v);
   8.575 -}
   8.576 -
   8.577 -/*
   8.578 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.579 - * Method:    setFloatField
   8.580 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;F)V
   8.581 - */
   8.582 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setFloatField
   8.583 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jfloat v)
   8.584 -{
   8.585 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.586 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.587 -
   8.588 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.589 -
   8.590 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.591 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.592 -
   8.593 -    (*env)->SetFloatField(env, obj, fieldID, v);
   8.594 -}
   8.595 -
   8.596 -/*
   8.597 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.598 - * Method:    setDoubleField
   8.599 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;D)V
   8.600 - */
   8.601 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setDoubleField
   8.602 -  (JNIEnv *env, jobject this, jobject obj, jclass clazz, jstring fieldName, jstring fieldSig, jdouble v)
   8.603 -{
   8.604 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.605 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.606 -
   8.607 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.608 -
   8.609 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.610 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.611 -
   8.612 -    (*env)->SetDoubleField(env, obj, fieldID, v);
   8.613 -}
   8.614 -
   8.615 -/*
   8.616 - * Class:     com_sun_corba_se_internal_util_JDKClassLoader
   8.617 - * Method:    specialLoadClass
   8.618 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Class;
   8.619 - */
   8.620 -JNIEXPORT jclass JNICALL Java_com_sun_corba_se_internal_util_JDKClassLoader_specialLoadClass
   8.621 -  (JNIEnv *env, jclass this, jobject target, jclass cls, jstring clsName)
   8.622 -{
   8.623 -    jthrowable exc;
   8.624 -        jclass streamTargetCls;
   8.625 -    jmethodID mid;
   8.626 -        jclass result;
   8.627 -        streamTargetCls = (*env)->FindClass(env, "java/io/ObjectInputStream");
   8.628 -        mid = (*env)->GetMethodID(env, streamTargetCls, "loadClass0", "(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Class;");
   8.629 -    if (mid == 0)
   8.630 -                return 0L;
   8.631 -    result = (jclass) (*env)->CallNonvirtualObjectMethod(env, target, streamTargetCls, mid, cls, clsName);
   8.632 -
   8.633 -    exc = (*env)->ExceptionOccurred(env);
   8.634 -    if (exc) {
   8.635 -        return 0L;
   8.636 -    }
   8.637 -
   8.638 -        return result;
   8.639 -}
   8.640 -
   8.641 -/*
   8.642 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.643 - * Method:    getObjectFieldOpt
   8.644 - * Signature: (Ljava/lang/Object;J)Ljava/lang/Object;
   8.645 - */
   8.646 -JNIEXPORT jobject JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getObjectFieldOpt
   8.647 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.648 -{
   8.649 -    return (*env)->GetObjectField(env, obj, (jfieldID)fieldID);
   8.650 -}
   8.651 -
   8.652 -/*
   8.653 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.654 - * Method:    getBooleanFieldOpt
   8.655 - * Signature: (Ljava/lang/Object;J)Z
   8.656 - */
   8.657 -JNIEXPORT jboolean JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getBooleanFieldOpt
   8.658 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.659 -{
   8.660 -    return (*env)->GetBooleanField(env, obj, (jfieldID)fieldID);
   8.661 -}
   8.662 -
   8.663 -/*
   8.664 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.665 - * Method:    getByteFieldOpt
   8.666 - * Signature: (Ljava/lang/Object;J)B
   8.667 - */
   8.668 -JNIEXPORT jbyte JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getByteFieldOpt
   8.669 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.670 -{
   8.671 -    return (*env)->GetByteField(env, obj, (jfieldID)fieldID);
   8.672 -
   8.673 -}
   8.674 -
   8.675 -/*
   8.676 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.677 - * Method:    getCharFieldOpt
   8.678 - * Signature: (Ljava/lang/Object;J)C
   8.679 - */
   8.680 -JNIEXPORT jchar JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getCharFieldOpt
   8.681 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.682 -{
   8.683 -    return (*env)->GetCharField(env, obj, (jfieldID)fieldID);
   8.684 -
   8.685 -}
   8.686 -
   8.687 -/*
   8.688 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.689 - * Method:    getShortFieldOpt
   8.690 - * Signature: (Ljava/lang/Object;J)S
   8.691 - */
   8.692 -JNIEXPORT jshort JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getShortFieldOpt
   8.693 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.694 -{
   8.695 -    return (*env)->GetShortField(env, obj, (jfieldID)fieldID);
   8.696 -}
   8.697 -
   8.698 -/*
   8.699 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.700 - * Method:    getIntFieldOpt
   8.701 - * Signature: (Ljava/lang/Object;J)I
   8.702 - */
   8.703 -JNIEXPORT jint JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getIntFieldOpt
   8.704 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.705 -{
   8.706 -    return (*env)->GetIntField(env, obj, (jfieldID)fieldID);
   8.707 -
   8.708 -}
   8.709 -
   8.710 -
   8.711 -/*
   8.712 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.713 - * Method:    getLongFieldOpt
   8.714 - * Signature: (Ljava/lang/Object;J)J
   8.715 - */
   8.716 -JNIEXPORT jlong JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getLongFieldOpt
   8.717 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.718 -{
   8.719 -    return (*env)->GetLongField(env, obj, (jfieldID)fieldID);
   8.720 -
   8.721 -}
   8.722 -
   8.723 -/*
   8.724 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.725 - * Method:    getFloatFieldOpt
   8.726 - * Signature: (Ljava/lang/Object;J)F
   8.727 - */
   8.728 -JNIEXPORT jfloat JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getFloatFieldOpt
   8.729 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.730 -{
   8.731 -    return (*env)->GetFloatField(env, obj, (jfieldID)fieldID);
   8.732 -
   8.733 -}
   8.734 -
   8.735 -/*
   8.736 - * Class:     com_sun_corba_se_internal_io_IIOPOutputStream
   8.737 - * Method:    getDoubleFieldOpt
   8.738 - * Signature: (Ljava/lang/Object;J)D
   8.739 - */
   8.740 -JNIEXPORT jdouble JNICALL Java_com_sun_corba_se_internal_io_IIOPOutputStream_getDoubleFieldOpt
   8.741 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID)
   8.742 -{
   8.743 -    return (*env)->GetDoubleField(env, obj, (jfieldID)fieldID);
   8.744 -
   8.745 -}
   8.746 -
   8.747 -
   8.748 -
   8.749 -/*
   8.750 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.751 - * Method:    setObjectFieldOpt
   8.752 - * Signature: (Ljava/lang/Object;JLjava/lang/Object;)V
   8.753 - */
   8.754 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setObjectFieldOpt
   8.755 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jobject v)
   8.756 -{
   8.757 -    (*env)->SetObjectField(env, obj, (jfieldID)fieldID, v);
   8.758 -}
   8.759 -
   8.760 -/*
   8.761 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.762 - * Method:    setBooleanFieldOpt
   8.763 - * Signature: (Ljava/lang/Object;JZ)V
   8.764 - */
   8.765 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setBooleanFieldOpt
   8.766 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jboolean v)
   8.767 -{
   8.768 -    (*env)->SetBooleanField(env, obj, (jfieldID)fieldID, v);
   8.769 -}
   8.770 -
   8.771 -/*
   8.772 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.773 - * Method:    setByteFieldOpt
   8.774 - * Signature: (Ljava/lang/Object;JB)V
   8.775 - */
   8.776 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setByteFieldOpt
   8.777 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jbyte v)
   8.778 -{
   8.779 -    (*env)->SetByteField(env, obj, (jfieldID)fieldID, v);
   8.780 -}
   8.781 -
   8.782 -/*
   8.783 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.784 - * Method:    setCharFieldOpt
   8.785 - * Signature: (Ljava/lang/Object;JC)V
   8.786 - */
   8.787 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setCharFieldOpt
   8.788 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jchar v)
   8.789 -{
   8.790 -    (*env)->SetCharField(env, obj, (jfieldID)fieldID, v);
   8.791 -}
   8.792 -
   8.793 -/*
   8.794 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.795 - * Method:    setShortFieldOpt
   8.796 - * Signature: (Ljava/lang/Object;JS)V
   8.797 - */
   8.798 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setShortFieldOpt
   8.799 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jshort v)
   8.800 -{
   8.801 -    (*env)->SetShortField(env, obj, (jfieldID)fieldID, v);
   8.802 -}
   8.803 -
   8.804 -/*
   8.805 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.806 - * Method:    setIntFieldOpt
   8.807 - * Signature: (Ljava/lang/Object;JI)V
   8.808 - */
   8.809 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setIntFieldOpt
   8.810 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jint v)
   8.811 -{
   8.812 -  (*env)->SetIntField(env, obj, (jfieldID)fieldID, v);
   8.813 -}
   8.814 -
   8.815 -/*
   8.816 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.817 - * Method:    setLongFieldOpt
   8.818 - * Signature: (Ljava/lang/Object;JJ)V
   8.819 - */
   8.820 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setLongFieldOpt
   8.821 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jlong v)
   8.822 -{
   8.823 -    (*env)->SetLongField(env, obj, (jfieldID)fieldID, v);
   8.824 -}
   8.825 -
   8.826 -/*
   8.827 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.828 - * Method:    setFloatFieldOpt
   8.829 - * Signature: (Ljava/lang/Object;JF)V
   8.830 - */
   8.831 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setFloatFieldOpt
   8.832 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jfloat v)
   8.833 -{
   8.834 -    (*env)->SetFloatField(env, obj, (jfieldID)fieldID, v);
   8.835 -}
   8.836 -
   8.837 -/*
   8.838 - * Class:     com_sun_corba_se_internal_io_IIOPInputStream
   8.839 - * Method:    setDoubleFieldOpt
   8.840 - * Signature: (Ljava/lang/Object;JD)V
   8.841 - */
   8.842 -JNIEXPORT void JNICALL Java_com_sun_corba_se_internal_io_IIOPInputStream_setDoubleFieldOpt
   8.843 -  (JNIEnv *env, jobject this, jobject obj, jlong fieldID, jdouble v)
   8.844 -{
   8.845 -    (*env)->SetDoubleField(env, obj, (jfieldID)fieldID, v);
   8.846 -}
   8.847 -
   8.848 -/*
   8.849 - * Class:     com_sun_corba_se_internal_io_IIOPObjectStreamField
   8.850 - * Method:    getFieldID
   8.851 - * Signature: (Ljava/lang/Object;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)X
   8.852 - */
   8.853 -JNIEXPORT jlong JNICALL Java_com_sun_corba_se_internal_io_ObjectStreamField_getFieldIDNative
   8.854 -  (JNIEnv *env, jobject this, jclass clazz, jstring fieldName, jstring fieldSig)
   8.855 -{
   8.856 -    const char* strFieldName = (*env)->GetStringUTFChars(env, fieldName, 0L);
   8.857 -    const char* strFieldSig = (*env)->GetStringUTFChars(env, fieldSig, 0L);
   8.858 -
   8.859 -    jfieldID fieldID = (*env)->GetFieldID(env, clazz, strFieldName, strFieldSig);
   8.860 -
   8.861 -    (*env)->ReleaseStringUTFChars(env, fieldName, strFieldName);
   8.862 -    (*env)->ReleaseStringUTFChars(env, fieldSig, strFieldSig);
   8.863 -
   8.864 -    return (jlong)fieldID;
   8.865 -}

mercurial