Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4904095

Regression java/awt/ComponentOrientation/BasicTest.java can't be compiled.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ============================================================
      JDK: Tiger 1.5.0 b14
      OS : Windows XP Prof. ja / Solaris sparc 9 / RedHat 9.0
      Test case : Regression test suite for Tiger b14
                  java/awt/ComponentOrientation/BasicTest.java
      ============================================================

      java/awt/ComponentOrientation/BasicTest.java can't be tested.
      Looking at log file, .class file cann't be created with Tiger.

      Here is log file;
      ---------------------------------------------------------------------
      BasicTest.java:42: ')' expected
              assert(ComponentOrientation.LEFT_TO_RIGHT.isLeftToRight(),
                                                                       ^
      BasicTest.java:45: ')' expected
              assert(ComponentOrientation.UNKNOWN.isLeftToRight(),
                                                                 ^
      BasicTest.java:48: ')' expected
              assert(!ComponentOrientation.RIGHT_TO_LEFT.isLeftToRight(),
                                                                        ^
      BasicTest.java:51: ')' expected
              assert(ComponentOrientation.LEFT_TO_RIGHT.isHorizontal(),
                                                                      ^
      BasicTest.java:54: ')' expected
              assert(ComponentOrientation.UNKNOWN.isHorizontal(),
                                                                ^
      BasicTest.java:57: ')' expected
              assert(ComponentOrientation.RIGHT_TO_LEFT.isHorizontal(),
                                                                      ^
      BasicTest.java:72: ')' expected
              assert(orient == ComponentOrientation.LEFT_TO_RIGHT, "US == LEFT_TO_RIGHT");
                                                                 ^
      BasicTest.java:75: ')' expected
              assert(orient == ComponentOrientation.RIGHT_TO_LEFT, "iw == RIGHT_TO_LEFT");
                                                                 ^
      BasicTest.java:78: ')' expected
              assert(orient == ComponentOrientation.RIGHT_TO_LEFT, "ar == RIGHT_TO_LEFT");
                                                                 ^
      BasicTest.java:94: ')' expected
              assert(rb, ComponentOrientation.UNKNOWN, "et == UNKNOWN" );
                       ^
      BasicTest.java:99: ')' expected
              assert(rb, ComponentOrientation.LEFT_TO_RIGHT, "es == LEFT_TO_RIGHT" );
                       ^
      BasicTest.java:102: ')' expected
              assert(rb, ComponentOrientation.RIGHT_TO_LEFT, "iw == RIGHT_TO_LEFT" );
                       ^
      BasicTest.java:107: ')' expected
              assert(rb, ComponentOrientation.RIGHT_TO_LEFT, "ar == RIGHT_TO_LEFT" );
                       ^
      BasicTest.java:112: as of release 1.4, assert is a keyword, and may not be used as an identifier
          static void assert(ResourceBundle rb, ComponentOrientation o, String str) {
                      ^
      BasicTest.java:113: ')' expected
              assert(ComponentOrientation.getOrientation(rb) == o, str);
                                                                 ^
      BasicTest.java:116: as of release 1.4, assert is a keyword, and may not be used as an identifier
          static void assert(boolean condition, String str) {
                      ^
      16 errors
      ---------------------------------------------------------------------
       
      In Mantis, though the same error messages are displayed, .class file can be created.
      However, in Tiger, .class file cann't be created and this tests can't be tested.
      This failure starts from b14, it worked in b13.

      To reproduce;
      1. Install tiger b14.
      2. please compile attached file(Basic.sh)
         % javac Basic.sh

      Thenn, you can see this problem.


      ** NOTE **
      This failure may be related to #4903118. This bug occurs only on ja_JP.euc locale and works file on C locale.
      However, I confirmed that Basic.java's failure occurs on C locale also.



        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peytoia Yuka Kamiya (Inactive)
              Reporter:
              rsuzukisunw Rieko Suzuki (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: