Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use of javax.lang.model.SourceVersion not flagged by AndroidJdkLibsChecker #2817

Open
msridhar opened this issue Jan 7, 2022 · 4 comments
Open

Comments

@msridhar
Copy link
Contributor

msridhar commented Jan 7, 2022

See here: mozilla/rhino#1149 (comment)

I see that javax.lang.model.type.TypeKind is explicitly banned:

private static final ImmutableSet<String> BASE_BANNED_CLASSES =
// see b/72354470, https://github.com/typetools/checker-framework/issues/1781
ImmutableSet.of("javax/lang/model/type/TypeKind");

Shouldn't everything under javax.lang be flagged?

@msridhar
Copy link
Contributor Author

@cushon just curious, does f8185d1 fix this issue?

@cushon
Copy link
Collaborator

cushon commented Mar 25, 2022

Sorry, I don't think it will, f8185d1 should be a no-op for check behaviour, it's just moving the computation of the APIs to check to happen statically instead of every time the check runs

@cushon
Copy link
Collaborator

cushon commented Mar 25, 2022

Also I think that banning everything under javax.lang makes sense, although I need to do some more testing to confirm that wouldn't cause any issues with our existing uses of this check

@p-bakker
Copy link

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants