Skip to content

Crash #963

Description

@pys

/Users/pys/src/openjml-macos-arm64-21.0.26/openjml -Xlint:unchecked /Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java
/Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java:1: error: ArrayQueue is not abstract and does not override abstract method peek() in BoundedQueue
public class ArrayQueue implements BoundedQueue {
^
where E is a type-variable:
E extends Object declared in class ArrayQueue
/Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java:10: error: Because 'max' reads 'a' in a represents clause, 'a' must be 'in' the model field 'max'
private represents max = a.length;
^
/Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java:11: error: Because 'q' reads 'size' in a represents clause, 'size' must be 'in' the model field 'q'
private represents q = (size == 0) ? \seq.empty()
^
/Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java:12: error: Because 'q' reads 'head' in a represents clause, 'head' must be 'in' the model field 'q'
: (head < last) ? a[head..last-1]
^
/Users/pys/src/IdeaProjects/jun26/src/ArrayQueue.java:12: error: Because 'q' reads 'last' in a represents clause, 'last' must be 'in' the model field 'q'
: (head < last) ? a[head..last-1]
^
./BoundedQueue.java:36: warning: [unchecked] unchecked generic array creation for varargs parameter of type E[]
@ ensures q == \old(q)+\seq.of(o);
^
where E is a type-variable:
E extends Object declared in interface BoundedQueue
5 errors
1 warning
java.lang.AssertionError
at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
at jdk.compiler/com.sun.tools.javac.tree.TreeScanner.visitTree(TreeScanner.java:421)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrDiagHandler$PosScanner.visitTree(DeferredAttr.java:600)
at jdk.compiler/org.jmlspecs.openjml.JmlTree$JmlRange.accept(JmlTree.java:3058)
at jdk.compiler/com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrDiagHandler$PosScanner.scan(DeferredAttr.java:593)
at jdk.compiler/com.sun.tools.javac.tree.TreeScanner.visitIndexed(TreeScanner.java:339)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCArrayAccess.accept(JCTree.java:2547)
at jdk.compiler/com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:50)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrDiagHandler$PosScanner.scan(DeferredAttr.java:593)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr$DeferredAttrDiagHandler.lambda$new$0(DeferredAttr.java:607)
at jdk.compiler/com.sun.tools.javac.util.Log$DeferredDiagnosticHandler.report(Log.java:151)
at jdk.compiler/com.sun.tools.javac.util.Log.report(Log.java:674)
at jdk.compiler/com.sun.tools.javac.util.AbstractLog.error(AbstractLog.java:126)
at jdk.compiler/org.jmlspecs.openjml.Utils.error(Utils.java:1818)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitIdent(JmlAttr.java:6153)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2715)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:718)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitIndexed(JmlAttr.java:6286)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCArrayAccess.accept(JCTree.java:2547)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:563)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:543)
at jdk.compiler/com.sun.tools.javac.comp.DeferredAttr.attribSpeculative(DeferredAttr.java:535)
at jdk.compiler/com.sun.tools.javac.comp.Attr.isBooleanOrNumeric(Attr.java:2128)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.isBooleanOrNumeric(JmlAttr.java:8629)
at jdk.compiler/com.sun.tools.javac.comp.Attr.isBooleanOrNumeric(Attr.java:2106)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.isBooleanOrNumeric(JmlAttr.java:8629)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitConditional(Attr.java:2044)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitConditional(JmlAttr.java:5126)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCConditional.accept(JCTree.java:1536)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitConditional(Attr.java:2076)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitConditional(JmlAttr.java:5126)
at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCConditional.accept(JCTree.java:1536)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:711)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribExpr(JmlAttr.java:8292)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitJmlTypeClauseRepresents(JmlAttr.java:3875)
at jdk.compiler/org.jmlspecs.openjml.JmlTree$JmlTypeClauseRepresents.accept(JmlTree.java:4208)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attrTypeClause(JmlAttr.java:8903)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attrSpecs(JmlAttr.java:8954)
at jdk.compiler/org.jmlspecs.openjml.JmlSpecs.getAttrSpecs(JmlSpecs.java:697)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attrSpecs(JmlAttr.java:8755)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribMethodSpecsAndBody(JmlAttr.java:1573)
at jdk.compiler/com.sun.tools.javac.comp.Attr.visitMethodDef(Attr.java:1234)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.visitMethodDef(JmlAttr.java:1435)
at jdk.compiler/org.jmlspecs.openjml.JmlTree$JmlMethodDecl.accept(JmlTree.java:1432)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribTree(Attr.java:664)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribTree(JmlAttr.java:5099)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribStat(Attr.java:739)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribStat(JmlAttr.java:598)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClassBody(Attr.java:5698)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribClassBody(JmlAttr.java:574)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5585)
at jdk.compiler/com.sun.tools.javac.comp.JmlAttr.attribClass(JmlAttr.java:455)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attribClass(Attr.java:5404)
at jdk.compiler/com.sun.tools.javac.comp.Attr.attrib(Attr.java:5343)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.attribute(JavaCompiler.java:1364)
at jdk.compiler/com.sun.tools.javac.main.JmlCompiler.attribute(JmlCompiler.java:587)
at jdk.compiler/com.sun.tools.javac.main.JmlCompiler.attribute(JmlCompiler.java:545)
at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:971)
at jdk.compiler/com.sun.tools.javac.main.JmlCompiler.compile(JmlCompiler.java:211)
at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:337)
at jdk.compiler/org.jmlspecs.openjml.Main.compile(Main.java:470)
at jdk.compiler/org.jmlspecs.openjml.Main.execute(Main.java:296)
at jdk.compiler/org.jmlspecs.openjml.Main.execute(Main.java:253)
at jdk.compiler/org.jmlspecs.openjml.Main.main(Main.java:218)
at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:53)
error: A catastrophic JML internal error occurred. Please report the bug with as much information as you can.
Reason: Unexpected Throwable error caught. Use STACK= to see the stack trace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions