Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 70901 invoked from network); 4 Apr 2005 19:51:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2005 19:51:18 -0000 Received: (qmail 93984 invoked by uid 500); 4 Apr 2005 19:51:18 -0000 Mailing-List: contact jdo-commits-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-commits@db.apache.org Received: (qmail 93928 invoked by uid 99); 4 Apr 2005 19:51:17 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 04 Apr 2005 12:51:15 -0700 Received: (qmail 67607 invoked by uid 65534); 4 Apr 2005 19:43:52 -0000 Message-ID: <20050404194352.67606.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Mon, 04 Apr 2005 19:43:51 -0000 Subject: svn commit: r160090 [29/63] - in incubator/jdo/trunk: ./ tck20/ tck20/assertions/ tck20/iut_jars/ tck20/test/ tck20/test/conf/ tck20/test/java/ tck20/test/java/org/ tck20/test/java/org/apache/ tck20/test/java/org/apache/jdo/ tck20/test/java/org/apache/jdo/tck/ tck20/test/java/org/apache/jdo/tck/api/ tck20/test/java/org/apache/jdo/tck/api/instancecallbacks/ tck20/test/java/org/apache/jdo/tck/api/jdohelper/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/cache/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/close/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/extent/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/flags/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/getobject/ tck20/test/java/org/apache/jdo/tck/api/persistencemanager/lifecycle/ tck20/test/java/org/apache/jdo/tck/api/persistencemanagerfactory/ tck20/test/java/org/apache/jdo/tck/enhancement/ tck20/test/java/org/apache/jdo/tck/extents/ tck20/test/java/org/apache/jdo/tck/lifecycle/ tck20/test/java/org/apache/jdo/tck/lifecycle/nontransactional/ tck20/test/java/org/apache/jdo/tck/models/ tck20/test/java/org/apache/jdo/tck/models/embedded/ tck20/test/java/org/apache/jdo/tck/models/fieldtypes/ tck20/test/java/org/apache/jdo/tck/models/inheritance/ tck20/test/java/org/apache/jdo/tck/pc/ tck20/test/java/org/apache/jdo/tck/pc/company/ tck20/test/java/org/apache/jdo/tck/pc/fieldtypes/ tck20/test/java/org/apache/jdo/tck/pc/inheritance/ tck20/test/java/org/apache/jdo/tck/pc/instancecallbacks/ tck20/test/java/org/apache/jdo/tck/pc/lifecycle/ tck20/test/java/org/apache/jdo/tck/pc/mylib/ tck20/test/java/org/apache/jdo/tck/query/ tck20/test/java/org/apache/jdo/tck/query/operators/ tck20/test/java/org/apache/jdo/tck/transactions/ tck20/test/java/org/apache/jdo/tck/util/ tck20/test/jdo/ tck20/test/jdo/applicationidentity/ tck20/test/jdo/applicationidentity/org/ tck20/test/jdo/applicationidentity/org/apache/ tck20/test/jdo/applicationidentity/org/apache/jdo/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/company/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/inheritance/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/instancecallbacks/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/lifecycle/ tck20/test/jdo/applicationidentity/org/apache/jdo/tck/pc/mylib/ tck20/test/jdo/datastoreidentity/ tck20/test/jdo/datastoreidentity/org/ tck20/test/jdo/datastoreidentity/org/apache/ tck20/test/jdo/datastoreidentity/org/apache/jdo/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/company/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/inheritance/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/instancecallbacks/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/lifecycle/ tck20/test/jdo/datastoreidentity/org/apache/jdo/tck/pc/mylib/ tck20/test/orm/ tck20/test/orm/applicationidentity/ tck20/test/orm/applicationidentity/org/ tck20/test/orm/applicationidentity/org/apache/ tck20/test/orm/applicationidentity/org/apache/jdo/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/company/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/fieldtypes/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/inheritance/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/instancecallbacks/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/lifecycle/ tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/mylib/ tck20/test/orm/datastoreidentity/ tck20/test/orm/datastoreidentity/org/ tck20/test/orm/datastoreidentity/org/apache/ tck20/test/orm/datastoreidentity/org/apache/jdo/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/company/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/fieldtypes/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/inheritance/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/instancecallbacks/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/lifecycle/ tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/mylib/ tck20/test/sql/ tck20/test/sql/derby/ To: jdo-commits@db.apache.org From: mcaisse@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes= /FieldsOfPrimitiveshort.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/= apache/jdo/tck/pc/fieldtypes/FieldsOfPrimitiveshort.java?view=3Dauto&rev=3D= 160090 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes/Fi= eldsOfPrimitiveshort.java (added) +++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes/Fi= eldsOfPrimitiveshort.java Mon Apr 4 12:41:23 2005 @@ -0,0 +1,1089 @@ +/* + * Copyright 2005 The Apache Software Foundation. + *=20 + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at=20 + *=20 + * http://www.apache.org/licenses/LICENSE-2.0 + *=20 + * Unless required by applicable law or agreed to in writing, software=20 + * distributed under the License is distributed on an "AS IS" BASIS,=20 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied= .=20 + * See the License for the specific language governing permissions and=20 + * limitations under the License. + */ +=20 +package org.apache.jdo.tck.pc.fieldtypes; + +import java.io.Serializable; + +public class FieldsOfPrimitiveshort {=20 + public int identifier; + private short short0; + private short short1; + private short short2; + private short short3; + private short short4; + private short short5; + private short short6; + private short short7; + private static short short8; + private transient short short9; + private transient short short10; + private transient short short11; + private transient short short12; + private transient short short13; + private transient short short14; + private final short short15 =3D 5; + private volatile short short16; + private volatile short short17; + private volatile short short18; + private volatile short short19; + private volatile short short20; + private volatile short short21; + private volatile short short22; + private volatile short short23; + private static transient short short24; + private static final short short25 =3D 5; + private static volatile short short26; + private transient final short short27 =3D 5; + private transient volatile short short28; + private transient volatile short short29; + private transient volatile short short30; + private transient volatile short short31; + private transient volatile short short32; + private transient volatile short short33; + private static transient final short short34 =3D 5; + private static transient volatile short short35; + public short short36; + public short short37; + public short short38; + public short short39; + public short short40; + public short short41; + public short short42; + public short short43; + public static short short44; + public transient short short45; + public transient short short46; + public transient short short47; + public transient short short48; + public transient short short49; + public transient short short50; + public final short short51 =3D 5; + public volatile short short52; + public volatile short short53; + public volatile short short54; + public volatile short short55; + public volatile short short56; + public volatile short short57; + public volatile short short58; + public volatile short short59; + public static transient short short60; + public static final short short61 =3D 5; + public static volatile short short62; + public transient final short short63 =3D 5; + public transient volatile short short64; + public transient volatile short short65; + public transient volatile short short66; + public transient volatile short short67; + public transient volatile short short68; + public transient volatile short short69; + public static transient final short short70 =3D 5; + public static transient volatile short short71; + protected short short72; + protected short short73; + protected short short74; + protected short short75; + protected short short76; + protected short short77; + protected short short78; + protected short short79; + protected static short short80; + protected transient short short81; + protected transient short short82; + protected transient short short83; + protected transient short short84; + protected transient short short85; + protected transient short short86; + protected final short short87 =3D 5; + protected volatile short short88; + protected volatile short short89; + protected volatile short short90; + protected volatile short short91; + protected volatile short short92; + protected volatile short short93; + protected volatile short short94; + protected volatile short short95; + protected static transient short short96; + protected static final short short97 =3D 5; + protected static volatile short short98; + protected transient final short short99 =3D 5; + protected transient volatile short short100; + protected transient volatile short short101; + protected transient volatile short short102; + protected transient volatile short short103; + protected transient volatile short short104; + protected transient volatile short short105; + protected static transient final short short106 =3D 5; + protected static transient volatile short short107; + short short108; + short short109; + short short110; + short short111; + short short112; + short short113; + short short114; + short short115; + static short short116; + transient short short117; + transient short short118; + transient short short119; + transient short short120; + transient short short121; + transient short short122; + final short short123 =3D 5; + volatile short short124; + volatile short short125; + volatile short short126; + volatile short short127; + volatile short short128; + volatile short short129; + volatile short short130; + volatile short short131; + static transient short short132; + static final short short133 =3D 5; + static volatile short short134; + transient final short short135 =3D 5; + transient volatile short short136; + transient volatile short short137; + transient volatile short short138; + transient volatile short short139; + transient volatile short short140; + transient volatile short short141; + static transient final short short142 =3D 5; + static transient volatile short short143; + +public static final boolean [] isPersistent =3D {=20 +true,true,true,false,true,true,true,false,false,false, +false,true,true,true,false,false,true,true,true,false, +true,true,true,false,false,false,false,false,false,false, +true,true,true,false,false,false,true,true,true,false, +true,true,true,false,false,false,false,true,true,true, +false,false,true,true,true,false,true,true,true,false, +false,false,false,false,false,false,true,true,true,false, +false,false,true,true,true,false,true,true,true,false, +false,false,false,true,true,true,false,false,true,true, +true,false,true,true,true,false,false,false,false,false, +false,false,true,true,true,false,false,false,true,true, +true,false,true,true,true,false,false,false,false,true, +true,true,false,false,true,true,true,false,true,true, +true,false,false,false,false,false,false,false,true,true, +true,false,false,false + }; + +public static final boolean [] isStatic =3D {=20 +false,false,false,false,false,false,false,false,true,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,true,true,true,false,false,false, +false,false,false,false,true,true,false,false,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +true,true,true,false,false,false,false,false,false,false, +true,true,false,false,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,true,true,true,false, +false,false,false,false,false,false,true,true,false,false, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,true,true,true,false,false,false,false,false, +false,false,true,true + }; + +public static final boolean [] isFinal =3D {=20 +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,true,false,false,false,false, +false,false,false,false,false,true,false,true,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,true,false,false,false,false,false,false,false,false, +false,true,false,true,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,false,true,false,false, +false,false,false,false,false,false,false,true,false,true, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,true,false,false,false,false,false,false, +false,false,false,true,false,true,false,false,false,false, +false,false,true,false + }; + + public static final String [] fieldSpecs =3D {=20 + "private short short0", + "embedded=3D true private short short1", + "embedded=3D false private short short2", + "persistence-modifier=3D none private short short3", + "persistence-modifier=3D persistent private short short4", + "persistence-modifier=3D persistent embedded=3D true private short sh= ort5", + "persistence-modifier=3D persistent embedded=3D false private short s= hort6", + "persistence-modifier=3D transactional private short short7", + "private static short short8", + "private transient short short9", + "persistence-modifier=3D none private transient short short10", + "persistence-modifier=3D persistent private transient short short11", + "persistence-modifier=3D persistent embedded=3D true private transien= t short short12", + "persistence-modifier=3D persistent embedded=3D false private transie= nt short short13", + "persistence-modifier=3D transactional private transient short short1= 4", + "private final short short15", + "private volatile short short16", + "embedded=3D true private volatile short short17", + "embedded=3D false private volatile short short18", + "persistence-modifier=3D none private volatile short short19", + "persistence-modifier=3D persistent private volatile short short20", + "persistence-modifier=3D persistent embedded=3D true private volatile= short short21", + "persistence-modifier=3D persistent embedded=3D false private volatil= e short short22", + "persistence-modifier=3D transactional private volatile short short23= ", + "private static transient short short24", + "private static final short short25", + "private static volatile short short26", + "private transient final short short27", + "private transient volatile short short28", + "persistence-modifier=3D none private transient volatile short short2= 9", + "persistence-modifier=3D persistent private transient volatile short = short30", + "persistence-modifier=3D persistent embedded=3D true private transien= t volatile short short31", + "persistence-modifier=3D persistent embedded=3D false private transie= nt volatile short short32", + "persistence-modifier=3D transactional private transient volatile sho= rt short33", + "private static transient final short short34", + "private static transient volatile short short35", + "public short short36", + "embedded=3D true public short short37", + "embedded=3D false public short short38", + "persistence-modifier=3D none public short short39", + "persistence-modifier=3D persistent public short short40", + "persistence-modifier=3D persistent embedded=3D true public short sho= rt41", + "persistence-modifier=3D persistent embedded=3D false public short sh= ort42", + "persistence-modifier=3D transactional public short short43", + "public static short short44", + "public transient short short45", + "persistence-modifier=3D none public transient short short46", + "persistence-modifier=3D persistent public transient short short47", + "persistence-modifier=3D persistent embedded=3D true public transient= short short48", + "persistence-modifier=3D persistent embedded=3D false public transien= t short short49", + "persistence-modifier=3D transactional public transient short short50= ", + "public final short short51", + "public volatile short short52", + "embedded=3D true public volatile short short53", + "embedded=3D false public volatile short short54", + "persistence-modifier=3D none public volatile short short55", + "persistence-modifier=3D persistent public volatile short short56", + "persistence-modifier=3D persistent embedded=3D true public volatile = short short57", + "persistence-modifier=3D persistent embedded=3D false public volatile= short short58", + "persistence-modifier=3D transactional public volatile short short59", + "public static transient short short60", + "public static final short short61", + "public static volatile short short62", + "public transient final short short63", + "public transient volatile short short64", + "persistence-modifier=3D none public transient volatile short short65= ", + "persistence-modifier=3D persistent public transient volatile short s= hort66", + "persistence-modifier=3D persistent embedded=3D true public transient= volatile short short67", + "persistence-modifier=3D persistent embedded=3D false public transien= t volatile short short68", + "persistence-modifier=3D transactional public transient volatile shor= t short69", + "public static transient final short short70", + "public static transient volatile short short71", + "protected short short72", + "embedded=3D true protected short short73", + "embedded=3D false protected short short74", + "persistence-modifier=3D none protected short short75", + "persistence-modifier=3D persistent protected short short76", + "persistence-modifier=3D persistent embedded=3D true protected short = short77", + "persistence-modifier=3D persistent embedded=3D false protected short= short78", + "persistence-modifier=3D transactional protected short short79", + "protected static short short80", + "protected transient short short81", + "persistence-modifier=3D none protected transient short short82", + "persistence-modifier=3D persistent protected transient short short83= ", + "persistence-modifier=3D persistent embedded=3D true protected transi= ent short short84", + "persistence-modifier=3D persistent embedded=3D false protected trans= ient short short85", + "persistence-modifier=3D transactional protected transient short shor= t86", + "protected final short short87", + "protected volatile short short88", + "embedded=3D true protected volatile short short89", + "embedded=3D false protected volatile short short90", + "persistence-modifier=3D none protected volatile short short91", + "persistence-modifier=3D persistent protected volatile short short92", + "persistence-modifier=3D persistent embedded=3D true protected volati= le short short93", + "persistence-modifier=3D persistent embedded=3D false protected volat= ile short short94", + "persistence-modifier=3D transactional protected volatile short short= 95", + "protected static transient short short96", + "protected static final short short97", + "protected static volatile short short98", + "protected transient final short short99", + "protected transient volatile short short100", + "persistence-modifier=3D none protected transient volatile short shor= t101", + "persistence-modifier=3D persistent protected transient volatile shor= t short102", + "persistence-modifier=3D persistent embedded=3D true protected transi= ent volatile short short103", + "persistence-modifier=3D persistent embedded=3D false protected trans= ient volatile short short104", + "persistence-modifier=3D transactional protected transient volatile s= hort short105", + "protected static transient final short short106", + "protected static transient volatile short short107", + "short short108", + "embedded=3D true short short109", + "embedded=3D false short short110", + "persistence-modifier=3D none short short111", + "persistence-modifier=3D persistent short short112", + "persistence-modifier=3D persistent embedded=3D true short short113", + "persistence-modifier=3D persistent embedded=3D false short short114", + "persistence-modifier=3D transactional short short115", + "static short short116", + "transient short short117", + "persistence-modifier=3D none transient short short118", + "persistence-modifier=3D persistent transient short short119", + "persistence-modifier=3D persistent embedded=3D true transient short = short120", + "persistence-modifier=3D persistent embedded=3D false transient short= short121", + "persistence-modifier=3D transactional transient short short122", + "final short short123", + "volatile short short124", + "embedded=3D true volatile short short125", + "embedded=3D false volatile short short126", + "persistence-modifier=3D none volatile short short127", + "persistence-modifier=3D persistent volatile short short128", + "persistence-modifier=3D persistent embedded=3D true volatile short s= hort129", + "persistence-modifier=3D persistent embedded=3D false volatile short = short130", + "persistence-modifier=3D transactional volatile short short131", + "static transient short short132", + "static final short short133", + "static volatile short short134", + "transient final short short135", + "transient volatile short short136", + "persistence-modifier=3D none transient volatile short short137", + "persistence-modifier=3D persistent transient volatile short short138= ", + "persistence-modifier=3D persistent embedded=3D true transient volati= le short short139", + "persistence-modifier=3D persistent embedded=3D false transient volat= ile short short140", + "persistence-modifier=3D transactional transient volatile short short= 141", + "static transient final short short142", + "static transient volatile short short143" + }; + public int getLength() + { + return fieldSpecs.length; + } + public short get(int index) + { + switch (index) + { + case(0): + return short0; + case(1): + return short1; + case(2): + return short2; + case(3): + return short3; + case(4): + return short4; + case(5): + return short5; + case(6): + return short6; + case(7): + return short7; + case(8): + return short8; + case(9): + return short9; + case(10): + return short10; + case(11): + return short11; + case(12): + return short12; + case(13): + return short13; + case(14): + return short14; + case(15): + return short15; + case(16): + return short16; + case(17): + return short17; + case(18): + return short18; + case(19): + return short19; + case(20): + return short20; + case(21): + return short21; + case(22): + return short22; + case(23): + return short23; + case(24): + return short24; + case(25): + return short25; + case(26): + return short26; + case(27): + return short27; + case(28): + return short28; + case(29): + return short29; + case(30): + return short30; + case(31): + return short31; + case(32): + return short32; + case(33): + return short33; + case(34): + return short34; + case(35): + return short35; + case(36): + return short36; + case(37): + return short37; + case(38): + return short38; + case(39): + return short39; + case(40): + return short40; + case(41): + return short41; + case(42): + return short42; + case(43): + return short43; + case(44): + return short44; + case(45): + return short45; + case(46): + return short46; + case(47): + return short47; + case(48): + return short48; + case(49): + return short49; + case(50): + return short50; + case(51): + return short51; + case(52): + return short52; + case(53): + return short53; + case(54): + return short54; + case(55): + return short55; + case(56): + return short56; + case(57): + return short57; + case(58): + return short58; + case(59): + return short59; + case(60): + return short60; + case(61): + return short61; + case(62): + return short62; + case(63): + return short63; + case(64): + return short64; + case(65): + return short65; + case(66): + return short66; + case(67): + return short67; + case(68): + return short68; + case(69): + return short69; + case(70): + return short70; + case(71): + return short71; + case(72): + return short72; + case(73): + return short73; + case(74): + return short74; + case(75): + return short75; + case(76): + return short76; + case(77): + return short77; + case(78): + return short78; + case(79): + return short79; + case(80): + return short80; + case(81): + return short81; + case(82): + return short82; + case(83): + return short83; + case(84): + return short84; + case(85): + return short85; + case(86): + return short86; + case(87): + return short87; + case(88): + return short88; + case(89): + return short89; + case(90): + return short90; + case(91): + return short91; + case(92): + return short92; + case(93): + return short93; + case(94): + return short94; + case(95): + return short95; + case(96): + return short96; + case(97): + return short97; + case(98): + return short98; + case(99): + return short99; + case(100): + return short100; + case(101): + return short101; + case(102): + return short102; + case(103): + return short103; + case(104): + return short104; + case(105): + return short105; + case(106): + return short106; + case(107): + return short107; + case(108): + return short108; + case(109): + return short109; + case(110): + return short110; + case(111): + return short111; + case(112): + return short112; + case(113): + return short113; + case(114): + return short114; + case(115): + return short115; + case(116): + return short116; + case(117): + return short117; + case(118): + return short118; + case(119): + return short119; + case(120): + return short120; + case(121): + return short121; + case(122): + return short122; + case(123): + return short123; + case(124): + return short124; + case(125): + return short125; + case(126): + return short126; + case(127): + return short127; + case(128): + return short128; + case(129): + return short129; + case(130): + return short130; + case(131): + return short131; + case(132): + return short132; + case(133): + return short133; + case(134): + return short134; + case(135): + return short135; + case(136): + return short136; + case(137): + return short137; + case(138): + return short138; + case(139): + return short139; + case(140): + return short140; + case(141): + return short141; + case(142): + return short142; + case(143): + return short143; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,short value) + { + if(fieldSpecs[index].indexOf("final") !=3D -1) + return false; + switch (index) + { + case(0): + short0=3D value; + break; + case(1): + short1=3D value; + break; + case(2): + short2=3D value; + break; + case(3): + short3=3D value; + break; + case(4): + short4=3D value; + break; + case(5): + short5=3D value; + break; + case(6): + short6=3D value; + break; + case(7): + short7=3D value; + break; + case(8): + short8=3D value; + break; + case(9): + short9=3D value; + break; + case(10): + short10=3D value; + break; + case(11): + short11=3D value; + break; + case(12): + short12=3D value; + break; + case(13): + short13=3D value; + break; + case(14): + short14=3D value; + break; + case(16): + short16=3D value; + break; + case(17): + short17=3D value; + break; + case(18): + short18=3D value; + break; + case(19): + short19=3D value; + break; + case(20): + short20=3D value; + break; + case(21): + short21=3D value; + break; + case(22): + short22=3D value; + break; + case(23): + short23=3D value; + break; + case(24): + short24=3D value; + break; + case(26): + short26=3D value; + break; + case(28): + short28=3D value; + break; + case(29): + short29=3D value; + break; + case(30): + short30=3D value; + break; + case(31): + short31=3D value; + break; + case(32): + short32=3D value; + break; + case(33): + short33=3D value; + break; + case(35): + short35=3D value; + break; + case(36): + short36=3D value; + break; + case(37): + short37=3D value; + break; + case(38): + short38=3D value; + break; + case(39): + short39=3D value; + break; + case(40): + short40=3D value; + break; + case(41): + short41=3D value; + break; + case(42): + short42=3D value; + break; + case(43): + short43=3D value; + break; + case(44): + short44=3D value; + break; + case(45): + short45=3D value; + break; + case(46): + short46=3D value; + break; + case(47): + short47=3D value; + break; + case(48): + short48=3D value; + break; + case(49): + short49=3D value; + break; + case(50): + short50=3D value; + break; + case(52): + short52=3D value; + break; + case(53): + short53=3D value; + break; + case(54): + short54=3D value; + break; + case(55): + short55=3D value; + break; + case(56): + short56=3D value; + break; + case(57): + short57=3D value; + break; + case(58): + short58=3D value; + break; + case(59): + short59=3D value; + break; + case(60): + short60=3D value; + break; + case(62): + short62=3D value; + break; + case(64): + short64=3D value; + break; + case(65): + short65=3D value; + break; + case(66): + short66=3D value; + break; + case(67): + short67=3D value; + break; + case(68): + short68=3D value; + break; + case(69): + short69=3D value; + break; + case(71): + short71=3D value; + break; + case(72): + short72=3D value; + break; + case(73): + short73=3D value; + break; + case(74): + short74=3D value; + break; + case(75): + short75=3D value; + break; + case(76): + short76=3D value; + break; + case(77): + short77=3D value; + break; + case(78): + short78=3D value; + break; + case(79): + short79=3D value; + break; + case(80): + short80=3D value; + break; + case(81): + short81=3D value; + break; + case(82): + short82=3D value; + break; + case(83): + short83=3D value; + break; + case(84): + short84=3D value; + break; + case(85): + short85=3D value; + break; + case(86): + short86=3D value; + break; + case(88): + short88=3D value; + break; + case(89): + short89=3D value; + break; + case(90): + short90=3D value; + break; + case(91): + short91=3D value; + break; + case(92): + short92=3D value; + break; + case(93): + short93=3D value; + break; + case(94): + short94=3D value; + break; + case(95): + short95=3D value; + break; + case(96): + short96=3D value; + break; + case(98): + short98=3D value; + break; + case(100): + short100=3D value; + break; + case(101): + short101=3D value; + break; + case(102): + short102=3D value; + break; + case(103): + short103=3D value; + break; + case(104): + short104=3D value; + break; + case(105): + short105=3D value; + break; + case(107): + short107=3D value; + break; + case(108): + short108=3D value; + break; + case(109): + short109=3D value; + break; + case(110): + short110=3D value; + break; + case(111): + short111=3D value; + break; + case(112): + short112=3D value; + break; + case(113): + short113=3D value; + break; + case(114): + short114=3D value; + break; + case(115): + short115=3D value; + break; + case(116): + short116=3D value; + break; + case(117): + short117=3D value; + break; + case(118): + short118=3D value; + break; + case(119): + short119=3D value; + break; + case(120): + short120=3D value; + break; + case(121): + short121=3D value; + break; + case(122): + short122=3D value; + break; + case(124): + short124=3D value; + break; + case(125): + short125=3D value; + break; + case(126): + short126=3D value; + break; + case(127): + short127=3D value; + break; + case(128): + short128=3D value; + break; + case(129): + short129=3D value; + break; + case(130): + short130=3D value; + break; + case(131): + short131=3D value; + break; + case(132): + short132=3D value; + break; + case(134): + short134=3D value; + break; + case(136): + short136=3D value; + break; + case(137): + short137=3D value; + break; + case(138): + short138=3D value; + break; + case(139): + short139=3D value; + break; + case(140): + short140=3D value; + break; + case(141): + short141=3D value; + break; + case(143): + short143=3D value; + break; + default: + throw new IndexOutOfBoundsException(); + } + return true; + } + + public static class Oid implements Serializable { + public int identifier; + + public Oid() { + } + + public Oid(String s) { identifier =3D Integer.parseInt(justTheId(s= )); } + + public String toString() { return this.getClass().getName() + ": "= + identifier;} + + public int hashCode() { return (int)identifier ; } + + public boolean equals(Object other) { + if (other !=3D null && (other instanceof Oid)) { + Oid k =3D (Oid)other; + return k.identifier =3D=3D this.identifier; + } + return false; + } + =20 + protected static String justTheId(String str) { + return str.substring(str.indexOf(':') + 1); + } + + } =20 +} Propchange: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/field= types/FieldsOfPrimitiveshort.java ---------------------------------------------------------------------------= --- svn:executable =3D * Added: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes= /FieldsOfShort.java URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/java/org/= apache/jdo/tck/pc/fieldtypes/FieldsOfShort.java?view=3Dauto&rev=3D160090 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes/Fi= eldsOfShort.java (added) +++ incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/fieldtypes/Fi= eldsOfShort.java Mon Apr 4 12:41:23 2005 @@ -0,0 +1,1089 @@ +/* + * Copyright 2005 The Apache Software Foundation. + *=20 + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at=20 + *=20 + * http://www.apache.org/licenses/LICENSE-2.0 + *=20 + * Unless required by applicable law or agreed to in writing, software=20 + * distributed under the License is distributed on an "AS IS" BASIS,=20 + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied= .=20 + * See the License for the specific language governing permissions and=20 + * limitations under the License. + */ +=20 +package org.apache.jdo.tck.pc.fieldtypes; + +import java.io.Serializable; + +public class FieldsOfShort {=20 + public int identifier; + private Short Short0; + private Short Short1; + private Short Short2; + private Short Short3; + private Short Short4; + private Short Short5; + private Short Short6; + private Short Short7; + private static Short Short8; + private transient Short Short9; + private transient Short Short10; + private transient Short Short11; + private transient Short Short12; + private transient Short Short13; + private transient Short Short14; + private final Short Short15 =3D new Short((short)5); + private volatile Short Short16; + private volatile Short Short17; + private volatile Short Short18; + private volatile Short Short19; + private volatile Short Short20; + private volatile Short Short21; + private volatile Short Short22; + private volatile Short Short23; + private static transient Short Short24; + private static final Short Short25 =3D new Short((short)5); + private static volatile Short Short26; + private transient final Short Short27 =3D new Short((short)5); + private transient volatile Short Short28; + private transient volatile Short Short29; + private transient volatile Short Short30; + private transient volatile Short Short31; + private transient volatile Short Short32; + private transient volatile Short Short33; + private static transient final Short Short34 =3D new Short((short)5); + private static transient volatile Short Short35; + public Short Short36; + public Short Short37; + public Short Short38; + public Short Short39; + public Short Short40; + public Short Short41; + public Short Short42; + public Short Short43; + public static Short Short44; + public transient Short Short45; + public transient Short Short46; + public transient Short Short47; + public transient Short Short48; + public transient Short Short49; + public transient Short Short50; + public final Short Short51 =3D new Short((short)5); + public volatile Short Short52; + public volatile Short Short53; + public volatile Short Short54; + public volatile Short Short55; + public volatile Short Short56; + public volatile Short Short57; + public volatile Short Short58; + public volatile Short Short59; + public static transient Short Short60; + public static final Short Short61 =3D new Short((short)5); + public static volatile Short Short62; + public transient final Short Short63 =3D new Short((short)5); + public transient volatile Short Short64; + public transient volatile Short Short65; + public transient volatile Short Short66; + public transient volatile Short Short67; + public transient volatile Short Short68; + public transient volatile Short Short69; + public static transient final Short Short70 =3D new Short((short)5); + public static transient volatile Short Short71; + protected Short Short72; + protected Short Short73; + protected Short Short74; + protected Short Short75; + protected Short Short76; + protected Short Short77; + protected Short Short78; + protected Short Short79; + protected static Short Short80; + protected transient Short Short81; + protected transient Short Short82; + protected transient Short Short83; + protected transient Short Short84; + protected transient Short Short85; + protected transient Short Short86; + protected final Short Short87 =3D new Short((short)5); + protected volatile Short Short88; + protected volatile Short Short89; + protected volatile Short Short90; + protected volatile Short Short91; + protected volatile Short Short92; + protected volatile Short Short93; + protected volatile Short Short94; + protected volatile Short Short95; + protected static transient Short Short96; + protected static final Short Short97 =3D new Short((short)5); + protected static volatile Short Short98; + protected transient final Short Short99 =3D new Short((short)5); + protected transient volatile Short Short100; + protected transient volatile Short Short101; + protected transient volatile Short Short102; + protected transient volatile Short Short103; + protected transient volatile Short Short104; + protected transient volatile Short Short105; + protected static transient final Short Short106 =3D new Short((short)5); + protected static transient volatile Short Short107; + Short Short108; + Short Short109; + Short Short110; + Short Short111; + Short Short112; + Short Short113; + Short Short114; + Short Short115; + static Short Short116; + transient Short Short117; + transient Short Short118; + transient Short Short119; + transient Short Short120; + transient Short Short121; + transient Short Short122; + final Short Short123 =3D new Short((short)5); + volatile Short Short124; + volatile Short Short125; + volatile Short Short126; + volatile Short Short127; + volatile Short Short128; + volatile Short Short129; + volatile Short Short130; + volatile Short Short131; + static transient Short Short132; + static final Short Short133 =3D new Short((short)5); + static volatile Short Short134; + transient final Short Short135 =3D new Short((short)5); + transient volatile Short Short136; + transient volatile Short Short137; + transient volatile Short Short138; + transient volatile Short Short139; + transient volatile Short Short140; + transient volatile Short Short141; + static transient final Short Short142 =3D new Short((short)5); + static transient volatile Short Short143; + +public static final boolean [] isPersistent =3D {=20 +true,true,true,false,true,true,true,false,false,false, +false,true,true,true,false,false,true,true,true,false, +true,true,true,false,false,false,false,false,false,false, +true,true,true,false,false,false,true,true,true,false, +true,true,true,false,false,false,false,true,true,true, +false,false,true,true,true,false,true,true,true,false, +false,false,false,false,false,false,true,true,true,false, +false,false,true,true,true,false,true,true,true,false, +false,false,false,true,true,true,false,false,true,true, +true,false,true,true,true,false,false,false,false,false, +false,false,true,true,true,false,false,false,true,true, +true,false,true,true,true,false,false,false,false,true, +true,true,false,false,true,true,true,false,true,true, +true,false,false,false,false,false,false,false,true,true, +true,false,false,false + }; + +public static final boolean [] isStatic =3D {=20 +false,false,false,false,false,false,false,false,true,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,true,true,true,false,false,false, +false,false,false,false,true,true,false,false,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +true,true,true,false,false,false,false,false,false,false, +true,true,false,false,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,true,true,true,false, +false,false,false,false,false,false,true,true,false,false, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,true,true,true,false,false,false,false,false, +false,false,true,true + }; + +public static final boolean [] isFinal =3D {=20 +false,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,true,false,false,false,false, +false,false,false,false,false,true,false,true,false,false, +false,false,false,false,true,false,false,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,true,false,false,false,false,false,false,false,false, +false,true,false,true,false,false,false,false,false,false, +true,false,false,false,false,false,false,false,false,false, +false,false,false,false,false,false,false,true,false,false, +false,false,false,false,false,false,false,true,false,true, +false,false,false,false,false,false,true,false,false,false, +false,false,false,false,false,false,false,false,false,false, +false,false,false,true,false,false,false,false,false,false, +false,false,false,true,false,true,false,false,false,false, +false,false,true,false + }; + + public static final String [] fieldSpecs =3D {=20 + "private Short Short0", + "embedded=3D true private Short Short1", + "embedded=3D false private Short Short2", + "persistence-modifier=3D none private Short Short3", + "persistence-modifier=3D persistent private Short Short4", + "persistence-modifier=3D persistent embedded=3D true private Short Sh= ort5", + "persistence-modifier=3D persistent embedded=3D false private Short S= hort6", + "persistence-modifier=3D transactional private Short Short7", + "private static Short Short8", + "private transient Short Short9", + "persistence-modifier=3D none private transient Short Short10", + "persistence-modifier=3D persistent private transient Short Short11", + "persistence-modifier=3D persistent embedded=3D true private transien= t Short Short12", + "persistence-modifier=3D persistent embedded=3D false private transie= nt Short Short13", + "persistence-modifier=3D transactional private transient Short Short1= 4", + "private final Short Short15", + "private volatile Short Short16", + "embedded=3D true private volatile Short Short17", + "embedded=3D false private volatile Short Short18", + "persistence-modifier=3D none private volatile Short Short19", + "persistence-modifier=3D persistent private volatile Short Short20", + "persistence-modifier=3D persistent embedded=3D true private volatile= Short Short21", + "persistence-modifier=3D persistent embedded=3D false private volatil= e Short Short22", + "persistence-modifier=3D transactional private volatile Short Short23= ", + "private static transient Short Short24", + "private static final Short Short25", + "private static volatile Short Short26", + "private transient final Short Short27", + "private transient volatile Short Short28", + "persistence-modifier=3D none private transient volatile Short Short2= 9", + "persistence-modifier=3D persistent private transient volatile Short = Short30", + "persistence-modifier=3D persistent embedded=3D true private transien= t volatile Short Short31", + "persistence-modifier=3D persistent embedded=3D false private transie= nt volatile Short Short32", + "persistence-modifier=3D transactional private transient volatile Sho= rt Short33", + "private static transient final Short Short34", + "private static transient volatile Short Short35", + "public Short Short36", + "embedded=3D true public Short Short37", + "embedded=3D false public Short Short38", + "persistence-modifier=3D none public Short Short39", + "persistence-modifier=3D persistent public Short Short40", + "persistence-modifier=3D persistent embedded=3D true public Short Sho= rt41", + "persistence-modifier=3D persistent embedded=3D false public Short Sh= ort42", + "persistence-modifier=3D transactional public Short Short43", + "public static Short Short44", + "public transient Short Short45", + "persistence-modifier=3D none public transient Short Short46", + "persistence-modifier=3D persistent public transient Short Short47", + "persistence-modifier=3D persistent embedded=3D true public transient= Short Short48", + "persistence-modifier=3D persistent embedded=3D false public transien= t Short Short49", + "persistence-modifier=3D transactional public transient Short Short50= ", + "public final Short Short51", + "public volatile Short Short52", + "embedded=3D true public volatile Short Short53", + "embedded=3D false public volatile Short Short54", + "persistence-modifier=3D none public volatile Short Short55", + "persistence-modifier=3D persistent public volatile Short Short56", + "persistence-modifier=3D persistent embedded=3D true public volatile = Short Short57", + "persistence-modifier=3D persistent embedded=3D false public volatile= Short Short58", + "persistence-modifier=3D transactional public volatile Short Short59", + "public static transient Short Short60", + "public static final Short Short61", + "public static volatile Short Short62", + "public transient final Short Short63", + "public transient volatile Short Short64", + "persistence-modifier=3D none public transient volatile Short Short65= ", + "persistence-modifier=3D persistent public transient volatile Short S= hort66", + "persistence-modifier=3D persistent embedded=3D true public transient= volatile Short Short67", + "persistence-modifier=3D persistent embedded=3D false public transien= t volatile Short Short68", + "persistence-modifier=3D transactional public transient volatile Shor= t Short69", + "public static transient final Short Short70", + "public static transient volatile Short Short71", + "protected Short Short72", + "embedded=3D true protected Short Short73", + "embedded=3D false protected Short Short74", + "persistence-modifier=3D none protected Short Short75", + "persistence-modifier=3D persistent protected Short Short76", + "persistence-modifier=3D persistent embedded=3D true protected Short = Short77", + "persistence-modifier=3D persistent embedded=3D false protected Short= Short78", + "persistence-modifier=3D transactional protected Short Short79", + "protected static Short Short80", + "protected transient Short Short81", + "persistence-modifier=3D none protected transient Short Short82", + "persistence-modifier=3D persistent protected transient Short Short83= ", + "persistence-modifier=3D persistent embedded=3D true protected transi= ent Short Short84", + "persistence-modifier=3D persistent embedded=3D false protected trans= ient Short Short85", + "persistence-modifier=3D transactional protected transient Short Shor= t86", + "protected final Short Short87", + "protected volatile Short Short88", + "embedded=3D true protected volatile Short Short89", + "embedded=3D false protected volatile Short Short90", + "persistence-modifier=3D none protected volatile Short Short91", + "persistence-modifier=3D persistent protected volatile Short Short92", + "persistence-modifier=3D persistent embedded=3D true protected volati= le Short Short93", + "persistence-modifier=3D persistent embedded=3D false protected volat= ile Short Short94", + "persistence-modifier=3D transactional protected volatile Short Short= 95", + "protected static transient Short Short96", + "protected static final Short Short97", + "protected static volatile Short Short98", + "protected transient final Short Short99", + "protected transient volatile Short Short100", + "persistence-modifier=3D none protected transient volatile Short Shor= t101", + "persistence-modifier=3D persistent protected transient volatile Shor= t Short102", + "persistence-modifier=3D persistent embedded=3D true protected transi= ent volatile Short Short103", + "persistence-modifier=3D persistent embedded=3D false protected trans= ient volatile Short Short104", + "persistence-modifier=3D transactional protected transient volatile S= hort Short105", + "protected static transient final Short Short106", + "protected static transient volatile Short Short107", + "Short Short108", + "embedded=3D true Short Short109", + "embedded=3D false Short Short110", + "persistence-modifier=3D none Short Short111", + "persistence-modifier=3D persistent Short Short112", + "persistence-modifier=3D persistent embedded=3D true Short Short113", + "persistence-modifier=3D persistent embedded=3D false Short Short114", + "persistence-modifier=3D transactional Short Short115", + "static Short Short116", + "transient Short Short117", + "persistence-modifier=3D none transient Short Short118", + "persistence-modifier=3D persistent transient Short Short119", + "persistence-modifier=3D persistent embedded=3D true transient Short = Short120", + "persistence-modifier=3D persistent embedded=3D false transient Short= Short121", + "persistence-modifier=3D transactional transient Short Short122", + "final Short Short123", + "volatile Short Short124", + "embedded=3D true volatile Short Short125", + "embedded=3D false volatile Short Short126", + "persistence-modifier=3D none volatile Short Short127", + "persistence-modifier=3D persistent volatile Short Short128", + "persistence-modifier=3D persistent embedded=3D true volatile Short S= hort129", + "persistence-modifier=3D persistent embedded=3D false volatile Short = Short130", + "persistence-modifier=3D transactional volatile Short Short131", + "static transient Short Short132", + "static final Short Short133", + "static volatile Short Short134", + "transient final Short Short135", + "transient volatile Short Short136", + "persistence-modifier=3D none transient volatile Short Short137", + "persistence-modifier=3D persistent transient volatile Short Short138= ", + "persistence-modifier=3D persistent embedded=3D true transient volati= le Short Short139", + "persistence-modifier=3D persistent embedded=3D false transient volat= ile Short Short140", + "persistence-modifier=3D transactional transient volatile Short Short= 141", + "static transient final Short Short142", + "static transient volatile Short Short143" + }; + public int getLength() + { + return fieldSpecs.length; + } + public Short get(int index) + { + switch (index) + { + case(0): + return Short0; + case(1): + return Short1; + case(2): + return Short2; + case(3): + return Short3; + case(4): + return Short4; + case(5): + return Short5; + case(6): + return Short6; + case(7): + return Short7; + case(8): + return Short8; + case(9): + return Short9; + case(10): + return Short10; + case(11): + return Short11; + case(12): + return Short12; + case(13): + return Short13; + case(14): + return Short14; + case(15): + return Short15; + case(16): + return Short16; + case(17): + return Short17; + case(18): + return Short18; + case(19): + return Short19; + case(20): + return Short20; + case(21): + return Short21; + case(22): + return Short22; + case(23): + return Short23; + case(24): + return Short24; + case(25): + return Short25; + case(26): + return Short26; + case(27): + return Short27; + case(28): + return Short28; + case(29): + return Short29; + case(30): + return Short30; + case(31): + return Short31; + case(32): + return Short32; + case(33): + return Short33; + case(34): + return Short34; + case(35): + return Short35; + case(36): + return Short36; + case(37): + return Short37; + case(38): + return Short38; + case(39): + return Short39; + case(40): + return Short40; + case(41): + return Short41; + case(42): + return Short42; + case(43): + return Short43; + case(44): + return Short44; + case(45): + return Short45; + case(46): + return Short46; + case(47): + return Short47; + case(48): + return Short48; + case(49): + return Short49; + case(50): + return Short50; + case(51): + return Short51; + case(52): + return Short52; + case(53): + return Short53; + case(54): + return Short54; + case(55): + return Short55; + case(56): + return Short56; + case(57): + return Short57; + case(58): + return Short58; + case(59): + return Short59; + case(60): + return Short60; + case(61): + return Short61; + case(62): + return Short62; + case(63): + return Short63; + case(64): + return Short64; + case(65): + return Short65; + case(66): + return Short66; + case(67): + return Short67; + case(68): + return Short68; + case(69): + return Short69; + case(70): + return Short70; + case(71): + return Short71; + case(72): + return Short72; + case(73): + return Short73; + case(74): + return Short74; + case(75): + return Short75; + case(76): + return Short76; + case(77): + return Short77; + case(78): + return Short78; + case(79): + return Short79; + case(80): + return Short80; + case(81): + return Short81; + case(82): + return Short82; + case(83): + return Short83; + case(84): + return Short84; + case(85): + return Short85; + case(86): + return Short86; + case(87): + return Short87; + case(88): + return Short88; + case(89): + return Short89; + case(90): + return Short90; + case(91): + return Short91; + case(92): + return Short92; + case(93): + return Short93; + case(94): + return Short94; + case(95): + return Short95; + case(96): + return Short96; + case(97): + return Short97; + case(98): + return Short98; + case(99): + return Short99; + case(100): + return Short100; + case(101): + return Short101; + case(102): + return Short102; + case(103): + return Short103; + case(104): + return Short104; + case(105): + return Short105; + case(106): + return Short106; + case(107): + return Short107; + case(108): + return Short108; + case(109): + return Short109; + case(110): + return Short110; + case(111): + return Short111; + case(112): + return Short112; + case(113): + return Short113; + case(114): + return Short114; + case(115): + return Short115; + case(116): + return Short116; + case(117): + return Short117; + case(118): + return Short118; + case(119): + return Short119; + case(120): + return Short120; + case(121): + return Short121; + case(122): + return Short122; + case(123): + return Short123; + case(124): + return Short124; + case(125): + return Short125; + case(126): + return Short126; + case(127): + return Short127; + case(128): + return Short128; + case(129): + return Short129; + case(130): + return Short130; + case(131): + return Short131; + case(132): + return Short132; + case(133): + return Short133; + case(134): + return Short134; + case(135): + return Short135; + case(136): + return Short136; + case(137): + return Short137; + case(138): + return Short138; + case(139): + return Short139; + case(140): + return Short140; + case(141): + return Short141; + case(142): + return Short142; + case(143): + return Short143; + default: + throw new IndexOutOfBoundsException(); + } + } + public boolean set(int index,Short value) + { + if(fieldSpecs[index].indexOf("final") !=3D -1) + return false; + switch (index) + { + case(0): + Short0=3D value; + break; + case(1): + Short1=3D value; + break; + case(2): + Short2=3D value; + break; + case(3): + Short3=3D value; + break; + case(4): + Short4=3D value; + break; + case(5): + Short5=3D value; + break; + case(6): + Short6=3D value; + break; + case(7): + Short7=3D value; + break; + case(8): + Short8=3D value; + break; + case(9): + Short9=3D value; + break; + case(10): + Short10=3D value; + break; + case(11): + Short11=3D value; + break; + case(12): + Short12=3D value; + break; + case(13): + Short13=3D value; + break; + case(14): + Short14=3D value; + break; + case(16): + Short16=3D value; + break; + case(17): + Short17=3D value; + break; + case(18): + Short18=3D value; + break; + case(19): + Short19=3D value; + break; + case(20): + Short20=3D value; + break; + case(21): + Short21=3D value; + break; + case(22): + Short22=3D value; + break; + case(23): + Short23=3D value; + break; + case(24): + Short24=3D value; + break; + case(26): + Short26=3D value; + break; + case(28): + Short28=3D value; + break; + case(29): + Short29=3D value; + break; + case(30): + Short30=3D value; + break; + case(31): + Short31=3D value; + break; + case(32): + Short32=3D value; + break; + case(33): + Short33=3D value; + break; + case(35): + Short35=3D value; + break; + case(36): + Short36=3D value; + break; + case(37): + Short37=3D value; + break; + case(38): + Short38=3D value; + break; + case(39): + Short39=3D value; + break; + case(40): + Short40=3D value; + break; + case(41): + Short41=3D value; + break; + case(42): + Short42=3D value; + break; + case(43): + Short43=3D value; + break; + case(44): + Short44=3D value; + break; + case(45): + Short45=3D value; + break; + case(46): + Short46=3D value; + break; + case(47): + Short47=3D value; + break; + case(48): + Short48=3D value; + break; + case(49): + Short49=3D value; + break; + case(50): + Short50=3D value; + break; + case(52): + Short52=3D value; + break; + case(53): + Short53=3D value; + break; + case(54): + Short54=3D value; + break; + case(55): + Short55=3D value; + break; + case(56): + Short56=3D value; + break; + case(57): + Short57=3D value; + break; + case(58): + Short58=3D value; + break; + case(59): + Short59=3D value; + break; + case(60): + Short60=3D value; + break; + case(62): + Short62=3D value; + break; + case(64): + Short64=3D value; + break; + case(65): + Short65=3D value; + break; + case(66): + Short66=3D value; + break; + case(67): + Short67=3D value; + break; + case(68): + Short68=3D value; + break; + case(69): + Short69=3D value; + break; + case(71): + Short71=3D value; + break; + case(72): + Short72=3D value; + break; + case(73): + Short73=3D value; + break; + case(74): + Short74=3D value; + break; + case(75): + Short75=3D value; + break; + case(76): + Short76=3D value; + break; + case(77): + Short77=3D value; + break; + case(78): + Short78=3D value; + break; + case(79): + Short79=3D value; + break; + case(80): + Short80=3D value; + break; + case(81): + Short81=3D value; + break; + case(82): + Short82=3D value; + break; + case(83): + Short83=3D value; + break; + case(84): + Short84=3D value; + break; + case(85): + Short85=3D value; + break; + case(86): + Short86=3D value; + break; + case(88): + Short88=3D value; + break; + case(89): + Short89=3D value; + break; + case(90): + Short90=3D value; + break; + case(91): + Short91=3D value; + break; + case(92): + Short92=3D value; + break; + case(93): + Short93=3D value; + break; + case(94): + Short94=3D value; + break; + case(95): + Short95=3D value; + break; + case(96): + Short96=3D value; + break; + case(98): + Short98=3D value; + break; + case(100): + Short100=3D value; + break; + case(101): + Short101=3D value; + break; + case(102): + Short102=3D value; + break; + case(103): + Short103=3D value; + break; + case(104): + Short104=3D value; + break; + case(105): + Short105=3D value; + break; + case(107): + Short107=3D value; + break; + case(108): + Short108=3D value; + break; + case(109): + Short109=3D value; + break; + case(110): + Short110=3D value; + break; + case(111): + Short111=3D value; + break; + case(112): + Short112=3D value; + break; + case(113): + Short113=3D value; + break; + case(114): + Short114=3D value; + break; + case(115): + Short115=3D value; + break; + case(116): + Short116=3D value; + break; + case(117): + Short117=3D value; + break; + case(118): + Short118=3D value; + break; + case(119): + Short119=3D value; + break; + case(120): + Short120=3D value; + break; + case(121): + Short121=3D value; + break; + case(122): + Short122=3D value; + break; + case(124): + Short124=3D value; + break; + case(125): + Short125=3D value; + break; + case(126): + Short126=3D value; + break; + case(127): + Short127=3D value; + break; + case(128): + Short128=3D value; + break; + case(129): + Short129=3D value; + break; + case(130): + Short130=3D value; + break; + case(131): + Short131=3D value; + break; + case(132): + Short132=3D value; + break; + case(134): + Short134=3D value; + break; + case(136): + Short136=3D value; + break; + case(137): + Short137=3D value; + break; + case(138): + Short138=3D value; + break; + case(139): + Short139=3D value; + break; + case(140): + Short140=3D value; + break; + case(141): + Short141=3D value; + break; + case(143): + Short143=3D value; + break; + default: + throw new IndexOutOfBoundsException(); + } + return true; + } + + public static class Oid implements Serializable { + public int identifier; + + public Oid() { + } + + public Oid(String s) { identifier =3D Integer.parseInt(justTheId(s= )); } + + public String toString() { return this.getClass().getName() + ": "= + identifier;} + + public int hashCode() { return (int)identifier ; } + + public boolean equals(Object other) { + if (other !=3D null && (other instanceof Oid)) { + Oid k =3D (Oid)other; + return k.identifier =3D=3D this.identifier; + } + return false; + } + =20 + protected static String justTheId(String str) { + return str.substring(str.indexOf(':') + 1); + } + + } =20 +} Propchange: incubator/jdo/trunk/tck20/test/java/org/apache/jdo/tck/pc/field= types/FieldsOfShort.java ---------------------------------------------------------------------------= --- svn:executable =3D *