]> granicus.if.org Git - icu/commitdiff
ICU-8528 Enabled Java assertions in build target check and exhaustiveCheck. Commented...
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 9 Jun 2011 21:20:05 +0000 (21:20 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 9 Jun 2011 21:20:05 +0000 (21:20 +0000)
X-SVN-Rev: 30199

icu4j/build.xml
icu4j/main/classes/core/src/com/ibm/icu/text/PluralFormat.java
icu4j/main/classes/core/src/com/ibm/icu/text/SpoofChecker.java

index e1a919f8bb87911d5dda738a0d24767a7600c82f..9d65f79485862d217381cfaeeb92b4d5f6f94b60 100644 (file)
     <target name="check" description="Run the standard ICU4J test suite">
         <antcall target="_runCheck">
             <param name="runcheck.arg" value="-n"/>
-            <param name="runcheck.jvmarg" value="${jvm_options}"/>
+            <param name="runcheck.jvmarg" value="${jvm_options} -ea"/>
         </antcall>
     </target>
 
     <target name="exhaustiveCheck" description="Run the standard ICU4J test suite in exhaustive mode">
         <antcall target="_runCheck">
             <param name="runcheck.arg" value="-n -e10"/>
-            <param name="runcheck.jvmarg" value="${jvm_options}"/>
+            <param name="runcheck.jvmarg" value="${jvm_options} -ea"/>
         </antcall>
     </target>
 
     <target name="timeZoneCheck" description="Run the complete test for TimeZoneRoundTripAll">
         <antcall target="_runCheck">
-            <param name="runcheck.arg" value="-n -prop:TimeZoneRoundTripAll=true Core/Format/DateFormat/TimeZoneFormatTest"/>
+            <param name="runcheck.arg" value="-n -prop:TimeZoneRoundTripAll=true Core/Format/DateFormat/TimeZoneFormatTest -v"/>
             <param name="runcheck.jvmarg" value="${jvm_options}"/>
         </antcall>
     </target>
index f25eff9ed8cdca51ee465e191dc37395cd374813..e9f86c747368a8ccf1da6a23927ff09514efa85e 100644 (file)
@@ -393,7 +393,8 @@ public class PluralFormat extends UFormat {
             if(type==MessagePattern.Part.Type.ARG_LIMIT) {
                 break;
             }
-            assert type==MessagePattern.Part.Type.ARG_SELECTOR;
+            //TODO: Fix the assertion error - see ticket#8637
+            //assert type==MessagePattern.Part.Type.ARG_SELECTOR;
             // part is an ARG_SELECTOR followed by an optional explicit value, and then a message
             if(pattern.getPartType(partIndex).hasNumericValue()) {
                 // explicit value like "=2"
index fd1d2787eb279bfbbbc61d86079279b806237e79..e732c46a9bfdf2df044e8be5eecc44d25aa2b773 100644 (file)
@@ -1215,7 +1215,8 @@ public class SpoofChecker {
                     int offset = fStringLengthsTable.elementAt(i);
                     int length = fStringLengthsTable.elementAt(i + 1);
                     assert (offset < stringsLength);
-                    assert (length < 40);
+                    //TODO: Fix the assertion error - see ticket#8634
+                    //assert (length < 40);
                     assert (length > previousLength);
                     os.writeShort((short) offset);
                     os.writeShort((short) length);
@@ -1832,7 +1833,8 @@ public class SpoofChecker {
             assert (ix < stringLengthsLimit);
         }
 
-        assert (value + stringLen < fSpoofData.fRawData.fCFUStringTableLen);
+        //TODO: Fix the assertion error - see ticket#8634
+        //assert (value + stringLen < fSpoofData.fRawData.fCFUStringTableLen);
         dest.append(fSpoofData.fCFUStrings, value, stringLen);
         return;
     }