States named across specs resolve only if the declaring spec was registered first
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- java
- Ambito
- compilers, testing-qa
Direzione di ricerca
Start by tracing how spec types are registered and how @StateSet names are resolved for @StateRefinement references; the issue does not identify specific files or tests. Reproduce with the JFrame, Frame, and AWindow specs in the reported order, then move AWindowSpec before the others to compare results. Done means verification no longer depends on spec declaration order.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A spec may name a state declared in another class's spec (by simple name, through the hierarchy). This only works if the spec with the @StateSet is registered first, which follows textual order.
@ExternalRefinementsFor("javax.swing.JFrame")
public interface JFrameSpec {
@StateRefinement(to = "notDisplayable(this)")
void JFrame(String title);
}
@ExternalRefinementsFor("java.awt.Frame")
interface FrameSpec {
@StateRefinement(from = "notDisplayable(this)")
void setUndecorated(boolean undecorated);
}
@StateSet({"notDisplayable", "displayable"})
@ExternalRefinementsFor("java.awt.Window")
interface AWindowSpec {
@StateRefinement(to = "displayable(this)") void pack();
@StateRefinement(to = "notDisplayable(this)") void dispose();
}
On main 321a7321, with a client that builds a JFrame: Not Found Error: Ghost 'javax.swing.JFrame.notDisplayable' could not be found. With AWindowSpec moved first in the file: Correct! Passed Verification.
We should get this in the first pass.
Expected: the result does not depend on the order of the spec types (e.g. register all @StateSets before resolving state names in refinements).
- Lingua principale
- Java
- Stelle
- 73
- Fork
- 38
- Merge medio
- 12h 32m
- PR unite (30g)
- 45
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di liquid-java/liquidjava
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
liquid-java/liquidjava#562 ·
I maintainer di solito rispondono entro 1 giorno
-
A float ghost crashes the verifier: "Ghost not implemented for type float"Forse già presa @MohammedZaid1740 l’ha presa 7 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
liquid-java/liquidjava#443 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug real-world-finding
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
liquid-java/liquidjava#395 ·
I maintainer di solito rispondono entro 1 giorno
-
A ternary between arrays crashes: Sorts (Array Int Int) and Bool are incompatibleForse già presa @CatarinaGamboa l’ha presa 4 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
liquid-java/liquidjava#558 ·
I maintainer di solito rispondono entro 1 giorno
-
new T[a][b] gets length b instead of a (unsound)Forse già presa @CatarinaGamboa l’ha presa 4 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
liquid-java/liquidjava#557 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di liquid-java/liquidjava
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 60/100
quelea-projection/Quelea#749 ·
I maintainer di solito rispondono entro 1 giorno
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 92/100
erkamyaman/rust-anything#963 ·
I maintainer di solito rispondono entro 1 giorno
-
api-diagnostics bug jdbc
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ClickHouse/clickhouse-java#3464 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 76/100
-
Deferred
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Sanne/incus-spawn#2768 ·
I maintainer di solito rispondono entro 1 giorno