Changeset 406 for trunk/openjdk/corba
- Timestamp:
- Dec 21, 2012, 10:37:13 AM (13 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:mergeinfo changed
/branches/vendor/oracle/openjdk6/b27 (added) merged: 405 /branches/vendor/oracle/openjdk6/current merged: 404
- Property svn:mergeinfo changed
-
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ClientRequestInfoImpl.java
r278 r406 1 1 /* 2 * Copyright (c) 2000, 20 03, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 216 216 // ClientRequestInfo validity table (see ptc/00-08-06 table 21-1). 217 217 // Note: These must be in the same order as specified in contants. 218 pr otectedstatic final boolean validCall[][] = {218 private static final boolean validCall[][] = { 219 219 // LEGEND: 220 220 // s_req = send_request r_rep = receive_reply -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/interceptors/ServerRequestInfoImpl.java
r278 r406 1 1 /* 2 * Copyright (c) 2000, 20 03, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 196 196 // ServerRequestInfo validity table (see ptc/00-08-06 table 21-2). 197 197 // Note: These must be in the same order as specified in contants. 198 pr otectedstatic final boolean validCall[][] = {198 private static final boolean validCall[][] = { 199 199 // LEGEND: 200 200 // r_rsc = receive_request_service_contexts -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/javax/rmi/CORBA/Util.java
r278 r406 1 1 /* 2 * Copyright (c) 1999, 20 04, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 131 131 CORBALogDomains.RPC_ENCODING); 132 132 133 p ublicstatic Util instance = null;133 private static Util instance = null; 134 134 135 135 public Util() { 136 instance = this; 136 setInstance(this); 137 } 138 139 private static void setInstance( Util util ) { 140 assert instance == null : "Instance already defined"; 141 instance = util; 142 } 143 144 public static Util getInstance() { 145 return instance; 146 } 147 148 public static boolean isInstanceDefined() { 149 return instance != null; 137 150 } 138 151 -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/oa/poa/POAPolicyMediatorBase_R.java
r278 r406 1 1 /* 2 * Copyright (c) 2002, 20 04, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 94 94 activeObjectMap.putServant( servant, entry ) ; 95 95 96 if (Util.i nstance != null) {96 if (Util.isInstanceDefined()) { 97 97 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ; 98 98 POAFactory factory = pm.getFactory() ; … … 134 134 activeObjectMap.remove(key); 135 135 136 if (Util.i nstance != null) {136 if (Util.isInstanceDefined()) { 137 137 POAManagerImpl pm = (POAManagerImpl)poa.the_POAManager() ; 138 138 POAFactory factory = pm.getFactory() ; -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/oa/toa/TOAFactory.java
r278 r406 1 1 /* 2 * Copyright (c) 2002, 20 03, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 79 79 public void shutdown( boolean waitForCompletion ) 80 80 { 81 if (Util.i nstance != null) {82 Util. instance.unregisterTargetsForORB(orb);81 if (Util.isInstanceDefined()) { 82 Util.getInstance().unregisterTargetsForORB(orb); 83 83 } 84 84 } -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/orb/ParserTable.java
r278 r406 1 1 /* 2 * Copyright (c) 2002, 20 06, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 107 107 public ParserData[] getParserData() 108 108 { 109 return parserData ; 109 ParserData[] parserArray = new ParserData[parserData.length]; 110 System.arraycopy(parserData, 0, parserArray, 0, parserData.length); 111 return parserArray; 110 112 } 111 113 -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3.java
r278 r406 1 1 /* 2 * Copyright (c) 2000, 20 02, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 63 63 64 64 public static final RepositoryIdCache_1_3 cache = new RepositoryIdCache_1_3(); 65 p ublicstatic final byte[] IDL_IDENTIFIER_CHARS = {65 private static final byte[] IDL_IDENTIFIER_CHARS = { 66 66 67 67 // 0 1 2 3 4 5 6 7 8 9 a b c d e f … … 181 181 public static final String kRemoteValueRepID = ""; 182 182 183 p ublicstatic final Hashtable kSpecialArrayTypeStrings = new Hashtable();183 private static final Hashtable kSpecialArrayTypeStrings = new Hashtable(); 184 184 185 185 static { … … 190 190 } 191 191 192 p ublicstatic final Hashtable kSpecialCasesRepIDs = new Hashtable();192 private static final Hashtable kSpecialCasesRepIDs = new Hashtable(); 193 193 194 194 static { … … 198 198 } 199 199 200 p ublicstatic final Hashtable kSpecialCasesStubValues = new Hashtable();200 private static final Hashtable kSpecialCasesStubValues = new Hashtable(); 201 201 202 202 static { … … 210 210 211 211 212 p ublicstatic final Hashtable kSpecialCasesVersions = new Hashtable();212 private static final Hashtable kSpecialCasesVersions = new Hashtable(); 213 213 214 214 static { … … 221 221 } 222 222 223 p ublicstatic final Hashtable kSpecialCasesClasses = new Hashtable();223 private static final Hashtable kSpecialCasesClasses = new Hashtable(); 224 224 225 225 static { … … 233 233 } 234 234 235 p ublicstatic final Hashtable kSpecialCasesArrayPrefix = new Hashtable();235 private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable(); 236 236 237 237 static { … … 244 244 } 245 245 246 p ublicstatic final Hashtable kSpecialPrimitives = new Hashtable();246 private static final Hashtable kSpecialPrimitives = new Hashtable(); 247 247 248 248 static { -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/orbutil/RepositoryId_1_3_1.java
r278 r406 1 1 /* 2 * Copyright (c) 2001, 20 02, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 64 64 // legal use of '.' in a Java name. 65 65 66 p ublicstatic final byte[] IDL_IDENTIFIER_CHARS = {66 private static final byte[] IDL_IDENTIFIER_CHARS = { 67 67 68 68 // 0 1 2 3 4 5 6 7 8 9 a b c d e f … … 199 199 public static final String kRemoteValueRepID = ""; 200 200 201 p ublicstatic final Hashtable kSpecialArrayTypeStrings = new Hashtable();201 private static final Hashtable kSpecialArrayTypeStrings = new Hashtable(); 202 202 203 203 static { … … 208 208 } 209 209 210 p ublicstatic final Hashtable kSpecialCasesRepIDs = new Hashtable();210 private static final Hashtable kSpecialCasesRepIDs = new Hashtable(); 211 211 212 212 static { … … 216 216 } 217 217 218 p ublicstatic final Hashtable kSpecialCasesStubValues = new Hashtable();218 private static final Hashtable kSpecialCasesStubValues = new Hashtable(); 219 219 220 220 static { … … 228 228 229 229 230 p ublicstatic final Hashtable kSpecialCasesVersions = new Hashtable();230 private static final Hashtable kSpecialCasesVersions = new Hashtable(); 231 231 232 232 static { … … 239 239 } 240 240 241 p ublicstatic final Hashtable kSpecialCasesClasses = new Hashtable();241 private static final Hashtable kSpecialCasesClasses = new Hashtable(); 242 242 243 243 static { … … 251 251 } 252 252 253 p ublicstatic final Hashtable kSpecialCasesArrayPrefix = new Hashtable();253 private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable(); 254 254 255 255 static { … … 262 262 } 263 263 264 p ublicstatic final Hashtable kSpecialPrimitives = new Hashtable();264 private static final Hashtable kSpecialPrimitives = new Hashtable(); 265 265 266 266 static { -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/protocol/LocalClientRequestDispatcherBase.java
r278 r406 1 1 /* 2 * Copyright (c) 2002, 20 03, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 53 53 // If isNextIsLocalValid.get() == Boolean.TRUE, 54 54 // the next call to isLocal should be valid 55 pr otected staticThreadLocal isNextCallValid = new ThreadLocal() {55 private static final ThreadLocal isNextCallValid = new ThreadLocal() { 56 56 protected synchronized Object initialValue() { 57 57 return Boolean.TRUE; -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/impl/util/RepositoryId.java
r278 r406 1 1 /* 2 * Copyright (c) 1998, 20 04, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 58 58 // legal use of '.' in a Java name. 59 59 60 p ublicstatic final byte[] IDL_IDENTIFIER_CHARS = {60 private static final byte[] IDL_IDENTIFIER_CHARS = { 61 61 62 62 // 0 1 2 3 4 5 6 7 8 9 a b c d e f … … 96 96 private static IdentityHashtable classSeqToRepStr = new IdentityHashtable(); 97 97 98 private static IdentityHashtable repStrToByteArray = new IdentityHashtable();98 private static final IdentityHashtable repStrToByteArray = new IdentityHashtable(); 99 99 private static Hashtable repStrToClass = new Hashtable(); 100 100 … … 193 193 public static final String kRemoteValueRepID = ""; 194 194 195 p ublicstatic final Hashtable kSpecialArrayTypeStrings = new Hashtable();195 private static final Hashtable kSpecialArrayTypeStrings = new Hashtable(); 196 196 197 197 static { … … 202 202 } 203 203 204 p ublicstatic final Hashtable kSpecialCasesRepIDs = new Hashtable();204 private static final Hashtable kSpecialCasesRepIDs = new Hashtable(); 205 205 206 206 static { … … 210 210 } 211 211 212 p ublicstatic final Hashtable kSpecialCasesStubValues = new Hashtable();212 private static final Hashtable kSpecialCasesStubValues = new Hashtable(); 213 213 214 214 static { … … 222 222 223 223 224 p ublicstatic final Hashtable kSpecialCasesVersions = new Hashtable();224 private static final Hashtable kSpecialCasesVersions = new Hashtable(); 225 225 226 226 static { … … 233 233 } 234 234 235 p ublicstatic final Hashtable kSpecialCasesClasses = new Hashtable();235 private static final Hashtable kSpecialCasesClasses = new Hashtable(); 236 236 237 237 static { … … 245 245 } 246 246 247 p ublicstatic final Hashtable kSpecialCasesArrayPrefix = new Hashtable();247 private static final Hashtable kSpecialCasesArrayPrefix = new Hashtable(); 248 248 249 249 static { … … 256 256 } 257 257 258 p ublicstatic final Hashtable kSpecialPrimitives = new Hashtable();258 private static final Hashtable kSpecialPrimitives = new Hashtable(); 259 259 260 260 static { -
trunk/openjdk/corba/src/share/classes/com/sun/corba/se/spi/logging/CORBALogDomains.java
r278 r406 1 1 /* 2 * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 59 59 60 60 // Top level log domain for CORBA 61 public static String TOP_LEVEL_DOMAIN = "javax.enterprise.resource.corba";61 public static final String TOP_LEVEL_DOMAIN = "javax.enterprise.resource.corba"; 62 62 63 63 public static final String RPC = "rpc" ; -
trunk/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/IDLNames.java
r278 r406 1 1 /* 2 * Copyright (c) 1998, 20 07, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 72 72 }; 73 73 74 // Legal IDL Identifier characters (1 = legal). Note 75 // that '.' (2E) is marked as legal even though it is 76 // not legal in IDL. This allows us to treat a fully 77 // qualified Java name with '.' package separators 78 // uniformly, and is safe because that is the only 79 // legal use of '.' in a Java name. 80 81 private static final byte[] IDL_IDENTIFIER_CHARS = { 82 83 // 0 1 2 3 4 5 6 7 8 9 a b c d e f 84 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 00-0f 85 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 10-1f 86 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,1,0, // 20-2f 87 1,1,1,1, 1,1,1,1, 1,1,0,0, 0,0,0,0, // 30-3f 88 0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 40-4f 89 1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,1, // 50-5f 90 0,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // 60-6f 91 1,1,1,1, 1,1,1,1, 1,1,1,0, 0,0,0,0, // 70-7f 92 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 80-8f 93 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // 90-9f 94 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // a0-af 95 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, // b0-bf 96 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // c0-cf 97 0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // d0-df 98 1,1,1,1, 1,1,1,1, 1,1,1,1, 1,1,1,1, // e0-ef 99 0,1,1,1, 1,1,1,0, 1,1,1,1, 1,0,0,1, // f0-ff 100 }; 101 74 102 //_____________________________________________________________________ 75 103 // Public Interfaces … … 140 168 141 169 // Now see if we have any remaining illegal characters (see 142 // RepositoryId.IDL_IDENTIFIER_CHARS array)...170 // IDL_IDENTIFIER_CHARS array)... 143 171 144 172 int length = result.length(); … … 149 177 char c = result.charAt(i); 150 178 151 if (c > 255 || RepositoryId.IDL_IDENTIFIER_CHARS[c] == 0) {179 if (c > 255 || IDL_IDENTIFIER_CHARS[c] == 0) { 152 180 153 181 // We gotta convert. Have we already started? -
trunk/openjdk/corba/src/share/classes/sun/rmi/rmic/iiop/StubGenerator.java
r278 r406 1 1 /* 2 * Copyright (c) 1998, 20 07, Oracle and/or its affiliates. All rights reserved.2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 426 426 427 427 p.plnI("public String[] _ids() { "); 428 p.pln("return _type_ids;");428 p.pln("return (String[]) _type_ids.clone();"); 429 429 p.pOln("}"); 430 430 … … 1861 1861 if(POATie){ 1862 1862 p.plnI("public String[] _all_interfaces(org.omg.PortableServer.POA poa, byte[] objectId){"); 1863 p.pln("return _type_ids;");1863 p.pln("return (String[]) _type_ids.clone();"); 1864 1864 p.pOln("}"); 1865 1865 } else { 1866 1866 p.plnI("public String[] _ids() { "); 1867 p.pln("return _type_ids;");1867 p.pln("return (String[]) _type_ids.clone();"); 1868 1868 p.pOln("}"); 1869 1869 }
Note:
See TracChangeset
for help on using the changeset viewer.