Skip to content

Commit 781d951

Browse files
committed
Add source for jdk-7u13
1 parent c5451e8 commit 781d951

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1674
-4137
lines changed

release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ JAVA_VERSION="1.7.0"
22
OS_NAME="Linux"
33
OS_VERSION="2.6"
44
OS_ARCH="i586"
5-
SOURCE=" .:168aa0f1417b corba:dff0f0272891 deploy:17137286fcb6 hotspot:7a2cf85fc36e hotspot/src/closed:940b4a538689 hotspot/test/closed:b58a10cfd086 install:e22691518f61 jaxp:453a52320a1b jaxws:1f06394ca182 jdk:d9969a953f69 jdk/make/closed:e1c7045d4acc jdk/src/closed:77f4385b48fc jdk/test/closed:78a6f015fd8b langtools:aeef1c7e43bc pubs:0b55888af4fb sponsors:2f5b5fa3e389"
5+
SOURCE=" .:2412f7b8551e corba:b192d1487319 deploy:2f3bf2439c32 hotspot:34a7b6dda06e hotspot/src/closed:c84358bbd5fd hotspot/test/closed:0d3e9138b90c install:eb434bfa7ffb jaxp:eb9d57159e51 jaxws:c7ea4220ad61 jdk:0b9564dab118 jdk/make/closed:694d1f00833f jdk/src/closed:1bcbada88620 jdk/test/closed:fac2946f55f8 langtools:a778aaf53c52 pubs:67fbd3bf4b17 sponsors:953a74a37d6d"

src/com/sun/corba/se/impl/activation/ServerMain.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2002, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
33
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
44
*
55
*
@@ -322,9 +322,9 @@ class ServerCallback extends
322322
com.sun.corba.se.spi.activation._ServerImplBase
323323
{
324324
private ORB orb;
325-
private Method installMethod ;
326-
private Method uninstallMethod ;
327-
private Method shutdownMethod ;
325+
private transient Method installMethod ;
326+
private transient Method uninstallMethod ;
327+
private transient Method shutdownMethod ;
328328
private Object methodArgs[] ;
329329

330330
ServerCallback(ORB orb, Method installMethod, Method uninstallMethod,

src/com/sun/corba/se/impl/corba/AnyImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
33
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
44
*
55
*
@@ -1218,7 +1218,7 @@ public TypeCode createTypeCodeForClass (java.lang.Class c, ORB tcORB)
12181218
// See bug 4391648 for more info about the tcORB in this
12191219
// case.
12201220
RepositoryIdStrings repStrs
1221-
= RepositoryIdFactory.getRepIdStringsFactory(tcORB);
1221+
= RepositoryIdFactory.getRepIdStringsFactory();
12221222

12231223

12241224
// Assertion: c instanceof Serializable?
@@ -1251,7 +1251,7 @@ public TypeCode createTypeCodeForClass (java.lang.Class c, ORB tcORB)
12511251
// Anything else
12521252
// We know that this is a TypeCodeImpl since it is our ORB
12531253
classTC = (TypeCodeImpl)ValueUtility.createTypeCodeForClass(
1254-
tcORB, c, ORBUtility.createValueHandler(tcORB));
1254+
tcORB, c, ORBUtility.createValueHandler());
12551255
// Intruct classTC to store its buffer
12561256
classTC.setCaching(true);
12571257
// Update the cache

src/com/sun/corba/se/impl/encoding/CDRInputStream_1_0.java

Lines changed: 5 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
33
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
44
*
55
*
@@ -269,8 +269,8 @@ void performORBVersionSpecificInit() {
269269

270270
private final void createRepositoryIdHandlers()
271271
{
272-
repIdUtil = RepositoryIdFactory.getRepIdUtility(orb);
273-
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory(orb);
272+
repIdUtil = RepositoryIdFactory.getRepIdUtility();
273+
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
274274
}
275275

276276
public GIOPVersion getGIOPVersion() {
@@ -564,10 +564,7 @@ protected final String readStringOrIndirection(boolean allowIndirection) {
564564

565565
checkForNegativeLength(len);
566566

567-
if (orb != null && ORBUtility.isLegacyORB((ORB)orb))
568-
return legacyReadString(len);
569-
else
570-
return internalReadString(len);
567+
return internalReadString(len);
571568
}
572569

573570
private final String internalReadString(int len) {
@@ -588,54 +585,6 @@ private final String internalReadString(int len) {
588585
return new String(result, 0, getCharConverter().getNumChars());
589586
}
590587

591-
private final String legacyReadString(int len) {
592-
593-
//
594-
// Workaround for ORBs which send string lengths of
595-
// zero to mean empty string.
596-
//
597-
//
598-
// IMPORTANT: Do not replace 'new String("")' with "", it may result
599-
// in a Serialization bug (See serialization.zerolengthstring) and
600-
// bug id: 4728756 for details
601-
if (len == 0)
602-
return new String("");
603-
604-
len--;
605-
char[] c = new char[len];
606-
607-
int n = 0;
608-
while (n < len) {
609-
int avail;
610-
int bytes;
611-
int wanted;
612-
613-
avail = bbwi.buflen - bbwi.position();
614-
if (avail <= 0) {
615-
grow(1, 1);
616-
avail = bbwi.buflen - bbwi.position();
617-
}
618-
wanted = len - n;
619-
bytes = (wanted < avail) ? wanted : avail;
620-
// Microbenchmarks are showing a loop of ByteBuffer.get(int) being
621-
// faster than ByteBuffer.get(byte[], int, int).
622-
for (int i=0; i<bytes; i++) {
623-
c[n+i] = (char) (bbwi.byteBuffer.get(bbwi.position()+i) & 0xFF);
624-
}
625-
bbwi.position(bbwi.position() + bytes);
626-
n += bytes;
627-
}
628-
629-
//
630-
// Skip past terminating null byte
631-
//
632-
if (bbwi.position() + 1 > bbwi.buflen)
633-
alignAndCheck(1, 1);
634-
bbwi.position(bbwi.position() + 1);
635-
636-
return new String(c);
637-
}
638-
639588
public final String read_string() {
640589
return readStringOrIndirection(false);
641590
}
@@ -1045,7 +994,7 @@ public Serializable read_value(Class expectedType) {
1045994

1046995
try {
1047996
if (valueHandler == null)
1048-
valueHandler = ORBUtility.createValueHandler(orb);
997+
valueHandler = ORBUtility.createValueHandler();
1049998

1050999
value = valueHandler.readValue(parent,
10511000
indirection,

src/com/sun/corba/se/impl/encoding/CDROutputStream_1_0.java

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
33
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
44
*
55
*
@@ -189,18 +189,8 @@ public void init(org.omg.CORBA.ORB orb,
189189

190190
private final void createRepositoryIdHandlers()
191191
{
192-
if (orb != null) {
193-
// Get the appropriate versions based on the ORB version. The
194-
// ORB versioning info is only in the core ORB.
195-
repIdUtil
196-
= RepositoryIdFactory.getRepIdUtility(orb);
197-
repIdStrs
198-
= RepositoryIdFactory.getRepIdStringsFactory(orb);
199-
} else {
200-
// Get the latest versions
201-
repIdUtil = RepositoryIdFactory.getRepIdUtility();
202-
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
203-
}
192+
repIdUtil = RepositoryIdFactory.getRepIdUtility();
193+
repIdStrs = RepositoryIdFactory.getRepIdStringsFactory();
204194
}
205195

206196
public BufferManagerWrite getBufferManager()
@@ -705,7 +695,7 @@ private void writeWStringValue(String string) {
705695
private void writeArray(Serializable array, Class clazz) {
706696

707697
if (valueHandler == null)
708-
valueHandler = ORBUtility.createValueHandler(orb); //d11638
698+
valueHandler = ORBUtility.createValueHandler(); //d11638
709699

710700
// Write value_tag
711701
int indirection = writeValueTag(mustChunk, true,
@@ -768,7 +758,7 @@ private void writeValueBase(org.omg.CORBA.portable.ValueBase object,
768758

769759
private void writeRMIIIOPValueType(Serializable object, Class clazz) {
770760
if (valueHandler == null)
771-
valueHandler = ORBUtility.createValueHandler(orb); //d11638
761+
valueHandler = ORBUtility.createValueHandler(); //d11638
772762

773763
Serializable key = object;
774764

src/com/sun/corba/se/impl/io/FVDCodeBaseImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1999, 2003, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
33
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
44
*
55
*
@@ -86,7 +86,7 @@ public String implementation (String x){
8686
// default to using the current ORB version in case the
8787
// vhandler is not set
8888
if (vhandler == null) {
89-
vhandler = new ValueHandlerImpl(false);
89+
vhandler = ValueHandlerImpl.getInstance(false);
9090
}
9191

9292
// Util.getCodebase may return null which would
@@ -120,7 +120,7 @@ public FullValueDescription meta (String x){
120120
// default to using the current ORB version in case the
121121
// vhandler is not set
122122
if (vhandler == null) {
123-
vhandler = new ValueHandlerImpl(false);
123+
vhandler = ValueHandlerImpl.getInstance(false);
124124
}
125125

126126
try{
@@ -161,7 +161,7 @@ public String[] bases (String x){
161161
// default to using the current ORB version in case the
162162
// vhandler is not set
163163
if (vhandler == null) {
164-
vhandler = new ValueHandlerImpl(false);
164+
vhandler = ValueHandlerImpl.getInstance(false);
165165
}
166166

167167
Stack repIds = new Stack();

0 commit comments

Comments
 (0)