Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0-JSR-1
-
Fix Version/s: 1.0-JSR-5
-
Component/s: parser-antlr
-
Labels:None
-
Number of attachments :
Description
The test class:
class SListTest {
void start(int param) throws Exception {
}
}
Does not compile, stopping with the following error:
"Unexpected node type: "throws" found when expecting type: SLIST at line: ..."
any method/constructor can now have a throws clause. The clause is added to the method header in the bytecode so when using such a method from java the java compiler will now complain about using a method without catching the Exceptions. If you don't want this, don't use the throws clause.