> @@ -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

Wow, when did you run into this? Note that, when/if we move to Java 7, this 
limitation could be removed entirely. And how about referencing the bug in the 
error message?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/134/files#r6043288

Reply via email to