[ https://jira.codehaus.org/browse/WAGON-386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=318241#comment-318241 ]
Olivier Lamy commented on WAGON-386: ------------------------------------ A unit rely on the fact that inputstream#read(byte[] b, int off, int len) will read all byte in once but with 1.7 (in our unit test): 18 bytes are read in 2 read 1 byte then 17 bytes. So a transferprogess is triggered twice which break the assert. But as said in InputStream javadocs: "... An attempt is made to read as many as len bytes, but a smaller number may be read. ..." > build failure with jdk 1.7 > -------------------------- > > Key: WAGON-386 > URL: https://jira.codehaus.org/browse/WAGON-386 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-http, wagon-http-lightweight > Affects Versions: 2.4 > Environment: jdk 1.7 > Reporter: Olivier Lamy > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira