- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    7, 7u7, 8
- 
    JDK8(b83)/Windows7 ultimate(SP1, Japanese), Linux, Solaris 
- 
        b96
- 
        generic
- 
        generic
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8031029 | 7u80 | Dmeetry Degrave | P3 | Resolved | Fixed | b01 | 
| JDK-8060948 | 7u79 | Kurchi Subhra Hazra | P3 | Resolved | Fixed | b01 | 
| JDK-8057419 | 7u76 | Kurchi Subhra Hazra | P3 | Resolved | Fixed | b01 | 
| JDK-8047611 | 7u72 | Kurchi Subhra Hazra | P3 | Resolved | Fixed | b01 | 
| JDK-8040858 | 7u71 | Kurchi Subhra Hazra | P3 | Resolved | Fixed | b01 | 
| JDK-8040338 | 7u66 | Kurchi Subhra Hazra | P3 | Resolved | Fixed | b01 | 
Reproducible test:
------
public class Test {
public static void main(String[] args) throws Exception {
//Specify the URL to which you can access
URL url = new URL("http://www.google.com");
HttpURLConnection uc = (HttpURLConnection)url.openConnection();
uc.setDoOutput(true);
uc.setChunkedStreamingMode(Integer.MAX_VALUE);
OutputStream os = uc.getOutputStream();
}
}
------
>: java Test
Exception in thread "main" java.lang.NegativeArraySizeException
at sun.net.www.http.ChunkedOutputStream.<init>(ChunkedOutputStream.java:128)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1110)
at Test.main(Test.java:12)
- backported by
- 
                    JDK-8031029 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-         
- 
                    JDK-8040338 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-         
- 
                    JDK-8040858 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-         
- 
                    JDK-8047611 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-         
- 
                    JDK-8057419 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-         
- 
                    JDK-8060948 NegativeArraySizeException occurs in ChunkedOutputStream() with Integer.MAX_VALUE -           
- Resolved
 
-