> @@ -209,9 +209,10 @@ protected HttpURLConnection convert(HttpRequest request)
> throws IOException, Int
> writePayloadToConnection(payload, "streaming", connection);
> } else {
> Long length = checkNotNull(md.getContentLength(),
> "payload.getContentLength");
> - // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6755625
> - checkArgument(length < Integer.MAX_VALUE,
> - "JDK 1.6 does not support >2GB chunks. Use chunked
> encoding, if possible.");
> + checkArgument(length <= Integer.MAX_VALUE,
> + "JDK 1.6 does not support 2 GB or larger chunks." +
> + " Use chunked encoding or multi-part upload, if
> possible.");
> + // Reference:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6755625
I saw a weird constant in my code while truing large file support across
different providers. Agreed we can remove this when moving to JDK 7 and I
added a TODO. I added a link to the error message and changed the wording
slightly.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/134/files#r6044725