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
Regression since the Spoon 11 upgrade: any record crashes the verifier #369
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "java.io.File.getAbsolutePath()" because the return value of "spoon.reflect.cu.SourcePosition.getFile()" is null
at liquidjava.processor.refinement_checker.TypeChecker.scan(TypeChecker.java:74)
at spoon.reflect.visitor.CtScanner.visitCtRecord(CtScanner.java:1065)
Cause: Spoon 11 dispatches records to visitCtRecord, not visitCtClass. ExternalRefinementTypeChecker skips classes (visitCtClass is empty) but not records, so it visits the record's methods with no external target (prefix is null): TypeFactory.createReference(null) throws. Reporting that error then fails too, because the record's implicit members have no source file, so TypeChecker.scan throws the NPE above instead of the real error.
Found re-checking our bank of real-bug examples on the new main (one of them is a record).
Activity