A worked example
Explain a missing-filter failure
- Start with
- Java 21 · Spring Boot 3 · expected: return a list · actual: NullPointerException when filter is omitted · constraint: keep public API
- Check the result
- The prompt separates environment, behavior, code, and constraints, then requests an evidence-based cause and tests.
Code or an error message is required. Generating the prompt does not confirm or fix a null-handling bug.