INTEGRATION: CWS sb28 (1.2.42); FILE MERGED

2005/01/07 14:28:37 sb 1.2.42.1: #i40084# Polymorphic struct types must not be instantiated over unsigned integer types.
This commit is contained in:
Kurt Zenker 2005-01-18 12:31:41 +00:00
parent 86ec0a6fa6
commit f158b48e5d

View file

@ -2,9 +2,9 @@
*
* $RCSfile: PolyStructTest.java,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2004-06-04 03:04:49 $
* last change: $Author: kz $ $Date: 2005-01-18 13:31:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -128,18 +128,6 @@ public final class PolyStructTest extends ComplexTestCase {
t.transportShort(
new TestPolyStruct(new Short(Short.MAX_VALUE))).member);
assertEquals(
new Short((short) 0),
t.transportUnsignedShort(new TestPolyStruct()).member);
assertEquals(
new Short((short) 0),
t.transportUnsignedShort(
new TestPolyStruct(new Short((short) 0))).member);
assertEquals(
new Short((short) 0xFFFF),
t.transportUnsignedShort(
new TestPolyStruct(new Short((short) 0xFFFF))).member);
assertEquals(
new Integer(0), t.transportLong(new TestPolyStruct()).member);
assertEquals(
@ -151,18 +139,6 @@ public final class PolyStructTest extends ComplexTestCase {
t.transportLong(
new TestPolyStruct(new Integer(Integer.MAX_VALUE))).member);
assertEquals(
new Integer(0),
t.transportUnsignedLong(new TestPolyStruct()).member);
assertEquals(
new Integer(0),
t.transportUnsignedLong(
new TestPolyStruct(new Integer(0))).member);
assertEquals(
new Integer(0xFFFFFFFF),
t.transportUnsignedLong(
new TestPolyStruct(new Integer(0xFFFFFFFF))).member);
assertEquals(
new Long(0L), t.transportHyper(new TestPolyStruct()).member);
assertEquals(
@ -174,19 +150,6 @@ public final class PolyStructTest extends ComplexTestCase {
t.transportHyper(
new TestPolyStruct(new Long(Long.MAX_VALUE))).member);
assertEquals(
new Long(0L),
t.transportUnsignedHyper(new TestPolyStruct()).member);
assertEquals(
new Long(0),
t.transportUnsignedHyper(
new TestPolyStruct(new Long(0))).member);
assertEquals(
new Long(0xFFFFFFFFFFFFFFFFL),
t.transportUnsignedHyper(
new TestPolyStruct(
new Long(0xFFFFFFFFFFFFFFFFL))).member);
assertEquals(
new Float(0.0f), t.transportFloat(new TestPolyStruct()).member);
assertEquals(
@ -290,32 +253,14 @@ public final class PolyStructTest extends ComplexTestCase {
return s;
}
public TestPolyStruct transportUnsignedShort(
TestPolyStruct s)
{
return s;
}
public TestPolyStruct transportLong(TestPolyStruct s) {
return s;
}
public TestPolyStruct transportUnsignedLong(
TestPolyStruct s)
{
return s;
}
public TestPolyStruct transportHyper(TestPolyStruct s) {
return s;
}
public TestPolyStruct transportUnsignedHyper(
TestPolyStruct s)
{
return s;
}
public TestPolyStruct transportFloat(TestPolyStruct s) {
return s;
}