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

Error message needs to be improved

XMLWordPrintable

    • generic
    • generic

      Tried on Linux JDK build 1.6.0-auto-094
      Error message needs to be improved in the following case.

      Testcase:
      <code>
      public class Test22<T>{
           private static T getT<T>(){
              
           }
      }
      </code>

      Output when compiled:
      <output>
      Test22.java:2: ';' expected
           private static T getT<T>(){
                                 ^
      1 error
      </output>

      Error message is misleading to the user. Can be improved for better understanding.
      ###@###.### 2005-04-27 05:11:38 GMT

            vromero Vicente Arturo Romero Zaldivar
            savadhansunw Seetharama Avadhanam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: