-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
6
-
generic
-
generic
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
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