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

invalid error message on the '>>>' operator

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5.1
    • Verification:
      Verified

      Description



      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 '>>>'.

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: