| 1 |
This directory contains test cases for all type systems. |
| 2 |
As they are meant for all type systems, they do not contain any |
| 3 |
actual annotations or expected errors. |
| 4 |
They exercise tricky Java coding patterns that should be handled |
| 5 |
correctly. |
| 6 |
|
| 7 |
If a new type system correctly issues an error or a warning for one of these |
| 8 |
tests, then suppress it using the most specific error key possible, for example |
| 9 |
"keyfor:return.type.incompatible". Write the @SuppressWarnings annotation such |
| 10 |
that the scope is as limited as possible, but do not alter the code. Write a |
| 11 |
comment on the warning suppression explaining why the error is expected. Add |
| 12 |
the test with the expected error to the type systems test and add the expected |
| 13 |
error and/or adding annotations to prevent the error to the test. |
| 14 |
|
| 15 |
TODO: move interesting general purpose test cases from specific |
| 16 |
type systems to this directory. |
| 17 |
|
| 18 |
Note that this directory is also linked from |
| 19 |
checker/tests/all-system |