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

Error pointer overshoots

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.2
    • tools
    • sparc
    • solaris_7

      While compiling the following file with 1.3.0 compiler, error pointer overshoots the actual error.

      /**
      * ConstString.java
      * Generated by the IDL-to-Java compiler (portable), version "3.0"
      * from y.idl
      * Monday, October 11, 1999 4:54:05 PM PDT
      */

      public interface ConstString extends org.omg.CORBA.portable.IDLEntity
      {
        public static final String value = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
      }

      Here is the output from the compiler.

      $ /net/ultraowl/export/ultraowl2/jdk13x/sparc/jdk1.3_I/bin/javac ConstString.java
      ConstString.java:11: illegal escape character
        public static final String value = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
                                                    ^
      ConstString.java:11: illegal escape character
        public static final String value = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
                                                                ^
      ConstString.java:11: illegal escape character
        public static final String value = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
                                                                      ^
      ConstString.java:11: illegal escape character
        public static final String value = "\n\t\v\b\r\f\a\\\?\'\"\xff\377\7";
                                                                               ^
      4 errors

            gafter Neal Gafter (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: