Only the first error in a method is reported; later errors in the same method are hidden
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 56/100
Línea de trabajo
Start with the verifier path that checks method calls and reports State Refinement Errors; the payload does not name source files or tests, so locate that entry point and its existing tests for multiple errors. Reproduce the two calls in one method and compare with the two-method control. Done means both errors are reported while the control still reports both.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Impact: real bugs are hidden (false negatives): after the first error in a method, later errors in the same method are not reported, so fixing one bug and re-running is the only way to see the next.
Description
Errors in different methods are all reported, but within one method verification stops at the first error. In one of our benchmark exercises (E_A2_07_PortPairBinder, modelled on a real port-binding bug), two ServerSockets created already bound are bound again in the same method (bulk.bind(...) and health.bind(...)); only the first is reported.
Minimal reproducer (two files)
import liquidjava.specification.ExternalRefinementsFor;
import liquidjava.specification.StateRefinement;
import liquidjava.specification.StateSet;
@ExternalRefinementsFor("java.io.BufferedReader")
@StateSet({"open", "marked", "closed"})
interface BufferedReaderRefinements {
@StateRefinement(to = "open(this)")
void BufferedReader(java.io.Reader in);
@StateRefinement(from = "open(this)")
@StateRefinement(from = "marked(this)")
String readLine();
@StateRefinement(from = "open(this)", to = "marked(this)")
@StateRefinement(from = "marked(this)")
void mark(int readAheadLimit);
@StateRefinement(from = "marked(this)", to = "open(this)")
void reset();
@StateRefinement(from = "!closed(this)", to = "closed(this)")
void close();
}
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
public class Repro {
static void twoBugs(Reader a, Reader b) throws IOException {
BufferedReader first = new BufferedReader(a);
first.close();
first.readLine(); // error 1: reported
BufferedReader second = new BufferedReader(b);
second.reset(); // error 2: never marked, not reported
}
}
Expected: two State Refinement Errors, at first.readLine() and at second.reset().
Actual: only the first:
State Refinement Error: found closed(first²¹) but expected open(first²¹) || marked(first²¹)
9 | first.readLine(); // error 1: reported
Control: with the two calls in two methods, both are reported.
Suggestion: after reporting a refused call, continue as if the call had succeeded (assume its to state, or the precondition), so later calls are checked against a sensible state rather than cascading errors from the first.
- Lenguaje dominante
- Java
- Estrellas
- 73
- Forks
- 38
- Merge medio
- 12 h 32 min
- PR fusionados (30 d)
- 45
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de liquid-java/liquidjava
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
liquid-java/liquidjava#562 ·
Los mantenedores suelen responder en 1 día
-
A float ghost crashes the verifier: "Ghost not implemented for type float"Posiblemente ocupada @MohammedZaid1740 la tomó hace 7 días. Abiertobug good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
liquid-java/liquidjava#443 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug real-world-finding
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
liquid-java/liquidjava#395 ·
Los mantenedores suelen responder en 1 día
-
A ternary between arrays crashes: Sorts (Array Int Int) and Bool are incompatiblePosiblemente ocupada @CatarinaGamboa la tomó hace 4 días. Abiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
liquid-java/liquidjava#558 ·
Los mantenedores suelen responder en 1 día
-
new T[a][b] gets length b instead of a (unsound)Posiblemente ocupada @CatarinaGamboa la tomó hace 4 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
liquid-java/liquidjava#557 ·
Los mantenedores suelen responder en 1 día
Todos los issues de liquid-java/liquidjava
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
quelea-projection/Quelea#749 ·
Los mantenedores suelen responder en 1 día
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 92/100
erkamyaman/rust-anything#963 ·
Los mantenedores suelen responder en 1 día
-
api-diagnostics bug jdbc
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ClickHouse/clickhouse-java#3464 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 76/100
-
Deferred
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Sanne/incus-spawn#2768 ·
Los mantenedores suelen responder en 1 día