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 — False error: a break nested inside a switch case forgets that path's state (Found shows true) · Issue #499 · liquid-java/liquidjava Open Labels bugSomething isn't workingSomething isn't working DescriptionFollow-up to #494 / #497. With switch cases modelled, a @StateSet({"closed", "open"}) class Door { @StateRefinement(to = "closed(this)") Door() {} @StateRefinement(from = "closed(this)", to = "open(this)") void open() {} @StateRefinement(from = "open(this)", to = "closed(this)") void close() {} } class NestedBreak { // Every path opens the door before leaving the switch, so close() is fine static void enter(int k, boolean fast) { Door d = new Door(); switch (k) { case 1: if (fast) { d.open(); break; } d.open(); break; default: d.open(); } d.close(); } } Expected: no error. The Fix direction: record the context at each nested Not needed for the error-message study (no study exercise has this shape after a switch). 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. |