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: a field read in another method is assumed to still hold its initializer · Issue #340 · liquid-java/liquidjava Open 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 A non-final field assigned elsewhere ( Minimal reproducer import liquidjava.specification.Refinement; public class Repro { private float q = 0.75f; public void setQ(float v) { this.q = v; // any value } static void use(@Refinement("_ >= 0.0 && _ <= 1.0") float quality) {} void write() { use(q); // accepted: q is assumed to still be 0.75 } } Expected The read of Actual Control: the same code without the problem construct is reported import liquidjava.specification.Refinement; public class Control { private float q = 5.0f; public void setQ(float v) { this.q = v; } static void use(@Refinement("_ >= 0.0 && _ <= 1.0") float quality) {} void write() { use(q); // with a bad initializer: reported, so the initializer is what is assumed } } 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. ActivityMetadataMetadataAssigneesLabelsbugSomething 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. |