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

Parser needs to be improved for better error recovery.

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      Tried on Linux JDK build 1.6.0-auto-073

      Parser needs to be improved for better error recovery in the following case.

      Please see the following code:
      <code>
      class TestConstructor<T t,K k>{
          
      }
      public class Test18{
          
      }
      </code>

      Ouput of the code when compiled:
      <output>
      Test18.java:1: > expected
      class TestConstructor<T t,K k>{
                             ^
      Test18.java:4: '{' expected
      public class Test18{
            ^
      Test18.java:6: reached end of file while parsing
      }
       ^
      3 errors
      </ouput>
      ---
      This errors are misleading to user.
      ###@###.### 2005-04-18 10:06:12 GMT

      Attachments

        Activity

          People

            jjg Jonathan Gibbons
            savadhansunw Seetharama Avadhanam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: