java - OpenJML with generics? -
I have a class Edge.java
. When I run it through OpenJML, this happens:
My jdk is 1.7, openjml is turned on (to make sure both have been downloaded again). This is the command to use for running openjml (after example from the site): EDIT: I can confirm that with a lot of generic Simple classes can also cause this error: Edge.java Error: An internal JML error occurred, possibly recoverable. Please report bugs as much as you can with reason: com.sun.tools.javac.code.Symbol $ TypeSymbol can not be entered for com.sun.tools.javac.code.Symbol $ ClassSymbol The strange thing is,
java -jar "E: \ Downloads \ openjml \ openjml.jar" -esc -prover z3_4_3 - Exec "e: \ Downloads \ z3-4.3.0-x64 \ bin \ z3.exe" -noPurityCheck Test.java
Public square test & lt; T & gt; {TI; }
Public square edge & lt; K & gt; Applied comparative & lt; Edge & lt; K & gt; & Gt; {Public K N1, N2; Public full weight; Public Ultimate IT Tiebraker; Public stable int nextTiebreaker = 0; Public Edge (KN1, K2, Int Weight) {this.n1 = n1; This.n2 = n2; this. Weight = weight; Tiebraker = Next Tibreaker ++; } Compare @ Override Public Int (Edge & Lt; k & gt; o) {if (weight> gt; o.we.) returns +1; If (this weight is
solution I think That is to remove the -sc
option (runs extended static probes). The proper way to solve this is not sure.
Comments
Post a Comment