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

Merge: Fix HttpURLConnection CloseGuard warning due to lack of close on ... #24

Merged
merged 1 commit into from
Sep 19, 2012

Conversation

swankjesse
Copy link
Collaborator

...GZIPInputStream

Original AOSP/libcore commit by Brian Carlstrom:
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:184)
at java.util.zip.Inflater.(Inflater.java:82)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:96)
at java.util.zip.GZIPInputStream.(GZIPInputStream.java:81)
at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:523)
at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:831)
at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)
at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486)
at ...

Bug: 6602529
Change-Id: I9b49cbca561f8780d08844e566820087fdffc4d7

…on GZIPInputStream

Original AOSP/libcore commit by Brian Carlstrom:
java.lang.Throwable: Explicit termination method 'end' not called
  at dalvik.system.CloseGuard.open(CloseGuard.java:184)
  at java.util.zip.Inflater.<init>(Inflater.java:82)
  at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:96)
  at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:81)
  at libcore.net.http.HttpEngine.initContentStream(HttpEngine.java:523)
  at libcore.net.http.HttpEngine.readResponse(HttpEngine.java:831)
  at libcore.net.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:274)
  at libcore.net.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:486)
  at ...

Bug: 6602529
Change-Id: I9b49cbca561f8780d08844e566820087fdffc4d7
@@ -773,6 +773,50 @@ public void testDisconnectBeforeConnect() throws IOException {
assertEquals(200, connection.getResponseCode());
}

// public void testDisconnectAfterOnlyResponseCodeCausesNoCloseGuardWarning() throws IOException {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Like TLS and MockOS, CloseGuard is another important testing feature that's completely missing on HotSpot

Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 for MockOS :(

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.

3 participants