Summary: | [1.5] Cheetah allows generic throws clause | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Artur Biesiadowski <abies> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | minor | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Artur Biesiadowski
2004-05-23 12:43:38 EDT
Javac seems to issue a parse error, indicating that their grammar doesn't allow parameterized type in throws clause. I agree that the spec draft did disallow generics in exception handling, but this was just the spec draft. Clearly something to look into some more once specs are finalized. Aligned on javac since spec will likely be adjusted alike. Disallow use of parameterized types in throws clause and catch blocks. Fixed. Added regression test GenericTypeTest#test207 & test208. |