Allow nulls for Method.invoke(null) and Field.get(null)#63
Allow nulls for Method.invoke(null) and Field.get(null)#63vlsi wants to merge 1 commit intotypetools:masterfrom
Conversation
The nulls are permitted there to access static fields and methods
|
test_plume_lib build fails because it has So plume_lib should be adjusted (excessive suppression should be removed) after this PR is merged. |
|
This is requested occasionally, as in typetools/checker-framework#1534. The Checker Framework policy is to declare the parameters as non-null to avoid any chance of |
|
@cpovirk , thanks for looking into this, however, it looks like you are confused. The PR allows That is why I believe it should be generally possible to call Of course, I can add a stub to my project, however, it is sad that the default mode is "you can't use reflection" :-/ |
|
The comment you mention says "warning", however, in practice the code like |
|
Ah, you want to have non-standard stub. Ok, then I would put that stub into pgjdbc for a while. |
Co-authored-by: Mattias Ulbrich <[email protected]>
The nulls are permitted there to access static fields and methods