uber / NullAway

A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
MIT License
3.62k stars 290 forks source link

Add special handling for reading generic type argument annotations from bytecode, if needed #1005

Open msridhar opened 1 month ago

msridhar commented 1 month ago

From #1004:

Many more types of annotations need to be read with special handling on JDK versions earlier than 22, due to https://bugs.openjdk.org/browse/JDK-8225377. For now, we disable some tests on earlier JDKs. We may add this special handling in the future, but it will be a significant amount of work. We are still hoping the relevant javac fix gets backported, which will fix this for us; see https://github.com/jspecify/jspecify/issues/365.