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

Remove java.util.logging from AsyncServletOutputStreamWriter.Log #11644

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

niloc132
Copy link
Contributor

Comments suggest that this API cannot be referenced, but a new method in the interface still used it.

It is possible that only the Logger interface itself can't be referenced for some reason, in which case this won't help - I can't seem to cause the apparent Lincheck issue from the Gradle tests.

Comments suggest that this API cannot be referenced, but a new method in
the interface still used it.
@@ -88,8 +87,8 @@ final class AsyncServletOutputStreamWriter {
Logger logger = Logger.getLogger(AsyncServletOutputStreamWriter.class.getName());
this.log = new Log() {
@Override
public boolean isLoggable(Level level) {
return logger.isLoggable(level);
Copy link
Member

Choose a reason for hiding this comment

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

I think the point was to not run this line. There can be synchronization involved here, and that could maybe mess up lincheck. So it wasn't about avoiding the loading of the dependency (that actually happens anyway, even with this change), it ways about not calling into its infrastructure.

Not that I have any more background on this than you do, but I do think it is a plausible story.

Maybe we should change the comment to say "not call java.util.logging.Logger"?

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.

2 participants