GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Soundness: the methods of a record are not verified when an external spec is present · Issue #342 · liquid-java/liquidjava Closed Labels bugSomething isn't workingSomething isn't working DescriptionImpact: a real bug passes verification (false negative). It blocks 1 of the 48 real-code examples we built (bugs mined from open-source Java). Description With an Minimal reproducer Two files, import liquidjava.specification.ExternalRefinementsFor; import liquidjava.specification.StateRefinement; import liquidjava.specification.StateSet; @ExternalRefinementsFor("java.lang.Throwable") @StateSet({"withThrowable", "noThrowable"}) public interface ThrowableRefinements { @StateRefinement(to = "noThrowable(this)") void Throwable(String message); @StateRefinement(to = "withThrowable(this)") void Throwable(String message, Throwable cause); @StateRefinement(from = "noThrowable(this)", to = "withThrowable(this)") Throwable initCause(Throwable cause); } public record Repro(int attempts) { void fail(String summary) { Throwable exception = new Throwable(summary, new RuntimeException("first")); exception.initCause(new RuntimeException("second")); // JVM: Can't overwrite cause } } Expected A state error at Actual Control: the same code without the problem construct is reported public class Control { void fail(String summary) { Throwable exception = new Throwable(summary, new RuntimeException("first")); exception.initCause(new RuntimeException("second")); // the same method in a class: reported } } Reproduced on Context Found while turning bugs mined from real open-source Java (fixed upstream or still present) into study examples for the error-message study. Activity
MetadataMetadataAssigneesLabelsbugSomething isn't workingSomething isn't working TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |