mbeckerle commented on a change in pull request #120: Support more versions of
Java
URL: https://github.com/apache/incubator-daffodil/pull/120#discussion_r217406515
##########
File path:
daffodil-io/src/main/scala/org/apache/daffodil/io/DataOutputStreamImplMixin.scala
##########
@@ -534,16 +534,16 @@ trait DataOutputStreamImplMixin extends
DataStreamCommonState
Assert.usage(bb.remaining() == numBytesForLengthInBits)
- if (nFragBits > 0) bb.limit(bb.limit - 1) // last byte is the frag byte
+ if (nFragBits > 0) bb.limit(bb.limit() - 1) // last byte is the frag byte
val nBytesWritten = putByteBuffer(bb, finfo) // output all but the frag
byte if there is one.
val nBitsWritten = nBytesWritten * 8
if (nBytesWritten < nWholeBytes) {
nBytesWritten * 8
} else {
val isFragWritten =
if (nFragBits > 0) {
- bb.limit(bb.limit + 1)
- var fragByte: Long = Bits.asUnsignedByte(bb.get(bb.limit - 1))
+ bb.limit(bb.limit() + 1)
+ var fragByte: Long = Bits.asUnsignedByte(bb.get(bb.limit() - 1))
Review comment:
Ok, no special steps needed then since TravisCI will pick this up.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services