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
$ cat I.java
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
final class I {
@MonotonicNonNull String s;
I() {
init();
}
void init() {}
}
$ checker/bin/javac -processor nullness I.java
I.java:7: error: [method.invocation.invalid] call to init() not allowed on the given receiver.
init();
^
found : @UnderInitialization I
required: @Initialized I
1 error
I could believe that this has actually been unsound all along for reasons that I hadn't noticed, but it looks to me like it ought to continue to be permitted.
The text was updated successfully, but these errors were encountered:
New in 3.39.0-eisop1:
I could believe that this has actually been unsound all along for reasons that I hadn't noticed, but it looks to me like it ought to continue to be permitted.
The text was updated successfully, but these errors were encountered: