ttcn2java: Unhandled exception type Exception is JRE dependent (from J2SE-1.7 it disappears)
Submitted by Jeno Attila Balasko
Link to original bug (#537846)
Description
Created attachment 275343 ExceptionBug.ttcn
The java code generated from this ttcn code marked as erroneous if the JRE version is lower than J2SE-1.7.
module ExceptionBug {
type component CT{} type record of charstring RoC; //not used
template charstring t_cs := "A"
testcase tc1() runs on CT { var integer myint:= 0; var charstring cs:= "A"; log(myint,":",cs); }
control { execute(tc1()); }
}
The error marker: Description Resource Path Location Type Unhandled exception type Exception ExceptionBug.java /TR_2018_08/java_src/org/eclipse/titan/generated line 69 Java Problem
Remark: Under 1.7 another error marker can be found as well: Description Resource Path Location Type The method match(Base_Type, int, Restricted_Length_Template, int, boolean) of type new RecordOfMatch.match_function_t(){} must override a superclass method ExceptionBug.java /TR_2018_08/java_src/org/eclipse/titan/generated line 592 Java Problem
i.e the @Override handling has been changed in 1.7 !
Attachment 275343, "ExceptionBug.ttcn":
ExceptionBug.ttcn
Version: 6.4.0