Description
Parsing error in the examples of the key book (listing 16.2).
See stack trace.
Expect the following the be valid JML:
int /*@ strictly_pure @*/ max(…
Reproducible
Always.
Intermediate Solution
Change
int /*@ strictly_pure @*/ max(…
to
/*@ strictly_pure @*/ int max(…
Steps to reproduce
Load the example listing 16.2.
Additional information
ERROR WindowUserInterfaceControl - de.uka.ilkd.key.proof.init.ProofInputException: Failed to parse Java source in /var/folders/fw/w6f1wf8j12q0bhpqs9nfvcsw0000gn/T/key-examples11643747124465876277/newBook/Chapter_16/Sort:
Error occurred:
/var/folders/fw/w6f1wf8j12q0bhpqs9nfvcsw0000gn/T/key-examples11643747124465876277/newBook/Chapter_16/Sort/Sort.java:9/5: (line 9,col 5) Java syntax error: unexpected "/*@ strictly_pure @*/" "*/", expected one of "_" "assert" "ccat" "ccatch" "enum" "exec" ...
at de.uka.ilkd.key.proof.init.ProblemInitializer.readJava(ProblemInitializer.java:289)
at de.uka.ilkd.key.proof.init.ProblemInitializer.prepare(ProblemInitializer.java:617)
at de.uka.ilkd.key.proof.init.ProblemInitializer.prepare(ProblemInitializer.java:483)
at de.uka.ilkd.key.proof.io.AbstractProblemLoader.createInitConfig(AbstractProblemLoader.java:554)
at de.uka.ilkd.key.proof.io.AbstractProblemLoader.loadEnvironment(AbstractProblemLoader.java:348)
at de.uka.ilkd.key.proof.io.AbstractProblemLoader.load(AbstractProblemLoader.java:307)
at de.uka.ilkd.key.proof.io.ProblemLoader.doWork(ProblemLoader.java:74)
at de.uka.ilkd.key.proof.io.ProblemLoader$1.doInBackground(ProblemLoader.java:124)
at de.uka.ilkd.key.proof.io.ProblemLoader$1.doInBackground(ProblemLoader.java:117)
at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:305)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:342)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: de.uka.ilkd.key.util.parsing.BuildingExceptions: Error occurred:
/var/folders/fw/w6f1wf8j12q0bhpqs9nfvcsw0000gn/T/key-examples11643747124465876277/newBook/Chapter_16/Sort/Sort.java:9/5: (line 9,col 5) Java syntax error: unexpected "/*@ strictly_pure @*/" "*/", expected one of "_" "assert" "ccat" "ccatch" "enum" "exec" ...
at de.uka.ilkd.key.java.JavaService.unwrapParseResult(JavaService.java:294)
at de.uka.ilkd.key.java.JavaService.readCompilationUnits(JavaService.java:329)
at de.uka.ilkd.key.proof.init.ProblemInitializer.readJava(ProblemInitializer.java:282)
... 14 common frames omitted
Description
Parsing error in the examples of the key book (listing 16.2).
See stack trace.
Expect the following the be valid JML:
Reproducible
Always.
Intermediate Solution
Change
to
Steps to reproduce
Load the example listing 16.2.
Additional information
359625f