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

Disable JarInfer handler by default #261

Merged
merged 2 commits into from Dec 3, 2018

Conversation

msridhar
Copy link
Collaborator

@msridhar msridhar commented Dec 3, 2018

This is mostly so that we can have a somewhat-functional NullAway on JDK 11 sooner (see #259). But also, removing a handler may give a small performance boost. With this change, you need to pass -XepOpt:NullAway:JarInferEnabled=true to enable JarInfer.

Also, we separate out the JarInfer tests into their own module, so that there is no direct dependence from the nullaway module to the jarinfer libraries. This will enable us to get the :nullaway:test target passing on JDK 11 sooner.

Copy link
Contributor

@subarnob subarnob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should still fix InferredJARModelsHandler.processClassPath()

@msridhar
Copy link
Collaborator Author

msridhar commented Dec 3, 2018

We should still fix InferredJARModelsHandler.processClassPath()

Oh for sure. We won't be able to update NullAway internally on JDK 11 until we fix JarInfer. It's just that folks are moving to JDK 11 quickly now and I wanted the key parts of NullAway working sooner rather than later.

@lazaroclapp can you take a look at this PR and let me know if you have feedback?

@msridhar msridhar force-pushed the ms/jarinfer-disabled-by-default branch from e3309c1 to 10d7bc7 Compare December 3, 2018 17:07
Copy link
Collaborator

@lazaroclapp lazaroclapp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (the rationale for the change and the PR code itself) makes sense to me.

@msridhar msridhar merged commit cf8b704 into master Dec 3, 2018
@msridhar msridhar deleted the ms/jarinfer-disabled-by-default branch December 3, 2018 22:00
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

Successfully merging this pull request may close these issues.

None yet

3 participants