You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
False error: @StateSet on an enum is ignored, so its states give "Ghost 'Mode.off' could not be found" #468
Not Found Error: Ghost 'Mode.off' could not be found
6 | A;
7 |
8 | @StateRefinement(from = "off(this)", to = "on(this)")
| ^^^^^^^^^
9 | public void start() {}
10 | }
Without the @StateRefinement, the enum verifies (Correct! Passed Verification.), so the @StateSet is silently ignored.
Cause.MethodsFirstChecker.visitCtEnum only registers the enum constants; unlike visitCtClass, it never calls handleStateSetsFromAnnotation (or the ghost and alias handling), so the states off/on are never created.
Activity