CIF simulation crashes for enumeration literals that are Java keywords
Simulation of the attached file merged.cif
with default settings crashes the simulator:
java.lang.RuntimeException: Compilation error.
at org.eclipse.escet.cif.simulator.compiler.CifCompilerContext.compile(CifCompilerContext.java:1528)
at org.eclipse.escet.cif.simulator.compiler.CifCompiler.compileSpec(CifCompiler.java:115)
at org.eclipse.escet.cif.simulator.compiler.CifCompiler.compileSpec(CifCompiler.java:63)
at org.eclipse.escet.cif.simulator.CifSimulator.loadSpec(CifSimulator.java:475)
at org.eclipse.escet.cif.simulator.CifSimulator.simulateInternal(CifSimulator.java:216)
at org.eclipse.escet.cif.simulator.CifSimulator.simulate(CifSimulator.java:115)
at org.eclipse.escet.cif.simulator.CifSimulatorApp.runInternal(CifSimulatorApp.java:129)
at org.eclipse.escet.common.app.framework.Application.run(Application.java:343)
at org.eclipse.escet.common.app.framework.Application.run(Application.java:183)
at org.eclipse.escet.common.eclipse.ui.BaseFileCommandHandler.run(BaseFileCommandHandler.java:261)
at org.eclipse.escet.common.eclipse.ui.BaseFileCommandHandler$1.run(BaseFileCommandHandler.java:102)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.eclipse.escet.common.app.framework.javacompiler.RuntimeJavaCompilerException: Run-time Java code compilation failed (with 93 source files):
with output (0):
with diagnostics (9):
line 45, column 11: ERROR: <identifier> expected
line 46, column 5: ERROR: ',', '}', or ';' expected
line 46, column 8: ERROR: '}' expected
line 51, column 19: ERROR: class, interface, or enum expected
line 53, column 5: ERROR: class, interface, or enum expected
line 56, column 12: ERROR: class, interface, or enum expected
line 58, column 5: ERROR: class, interface, or enum expected
line 132, column 141: ERROR: <identifier> expected
line 263, column 90: ERROR: <identifier> expected
at org.eclipse.escet.common.app.framework.javacompiler.RuntimeJavaCompiler.compile(RuntimeJavaCompiler.java:223)
at org.eclipse.escet.cif.simulator.compiler.CifCompilerContext.compile(CifCompilerContext.java:1526)
... 11 more
[Application]
Application name = CIF simulator
Application version = 0.2.0.20210520-142628
Application class = org.eclipse.escet.cif.simulator.CifSimulatorApp
[Options]
Command line arguments = "merged.cif", "--option-dialog=yes"
merged.cif crash_report_2021-06-07_13-11-49-904_8575819919997265411.log
Edited by Dennis Hendriks