<changes>
<release version="3.8-beta4" date="2011-??-??">
+ <action dev="poi-developers" type="fix">51458 - Correct BitField wrapping when setting large values</action>
<action dev="poi-developers" type="add">51460 - Improve HSSF performance when loading very long rows, by switching the CellValue array to an iterator</action>
<action dev="poi-developers" type="fix">51444 - Prevent corrupted output when saving files created by LibreOffice 3.3 </action>
<action dev="poi-developers" type="add">51422 - Support using RecalcIdRecord to trigger a full formula recalculation on load </action>
assertEquals(bf_single.clearShort(( short ) -1),
bf_single.setShortBoolean(( short ) -1, false));
}
+
+ public void testSetLargeValues() {
+ final BitField bf1 = new BitField(0xF), bf2 = new BitField(0xF0000000);
+ int a = 0;
+ a = bf1.setValue(a, 9);
+ a = bf2.setValue(a, 9);
+ assertEquals(9, bf1.getValue(a));
+ assertEquals(9, bf2.getValue(a));
+ }
}