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

invalid error message on the '>>>' operator

XMLWordPrintable

    • 1.2fcs
    • sparc
    • solaris_2.5.1
    • Verified



      Name: laC46010 Date: 05/13/98


      javac (all JDKs) emits invalid error message when compiling
      source file that contains illegal assignment involving the '>>>' operator.

      See full example below:
      -------------------------------------------
      > /export/ld14/java/dest/jdk1.2b4E/solaris/bin/javac -d . tst.java
      tst.java:5: Incompatible type for <<<. Can't convert java.lang.String to int.
      a = a >>> s;
      ^
      > cat tst.java
      public class tst {
      public static void main( String argv[] ) {
      int a = 1;
      String s = "1";
      a = a >>> s;
      }
      }
      -------------------------------------------
      The '<<<' string in the message body should be changed to '>>>'.

      ======================================================================

            tturnidgsunw Todd Turnidge (Inactive)
            leosunw Leo Leo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: