See 
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/621/display/redirect?page=changes>

Changes:

[PJ Fanning] try to standardise div code

[PJ Fanning] [github-321] Fix issue with rounding in DataFormatter. Thanks to 
Colin Wang. This closes #321

[PJ Fanning] increase tolerance on rate test due to failures


------------------------------------------
[...truncated 292.77 KB...]
            int nameIdx = _uBook.getNameIndex(nameName);
                                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/BaseXSSFEvaluationWorkbook.java>:285:
 warning: [deprecation] getNameAt(int) in 
org.apache.poi.xssf.usermodel.XSSFWorkbook has been deprecated
        XSSFName xname = _uBook.getNameAt(idx);
                               ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/BaseXSSFEvaluationWorkbook.java>:340:
 warning: [deprecation] getNameAt(int) in 
org.apache.poi.xssf.usermodel.XSSFWorkbook has been deprecated
        return _uBook.getNameAt(namePtg.getIndex()).getNameName();
                     ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/BaseXSSFEvaluationWorkbook.java>:345:
 warning: [deprecation] getNameAt(int) in 
org.apache.poi.xssf.usermodel.XSSFWorkbook has been deprecated
        return new Name(_uBook.getNameAt(ix), ix, this);
                              ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/BaseXSSFFormulaEvaluator.java>:137:
 warning: [deprecation] setCellType(org.apache.poi.ss.usermodel.CellType) in 
org.apache.poi.ss.usermodel.Cell has been deprecated
            cell.setCellType(cellType);
                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java>:52:
 warning: [deprecation] createTempFile() in 
org.apache.poi.xssf.streaming.SheetDataWriter has been deprecated
    public File createTempFile() throws IOException {
                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/StreamingSheetWriter.java>:57:
 warning: [deprecation] createWriter(java.io.File) in 
org.apache.poi.xssf.streaming.SheetDataWriter has been deprecated
    public Writer createWriter(File fd) throws IOException {
                  ^
8 warnings

> Task :poi-ooxml:classes
> Task :poi-ooxml:jar
> Task :poi-excelant:compileJava
> Task :poi-excelant:compileJava9 SKIPPED
> Task :poi-excelant:cacheJava9 NO-SOURCE
> Task :poi-excelant:classes
> Task :poi-excelant:jar

> Task :poi:spotbugsMain
M V EI2: new 
org.apache.poi.poifs.crypt.binaryrc4.BinaryRC4Encryptor$BinaryRC4CipherOutputStream(BinaryRC4Encryptor,
 OutputStream) may expose internal representation by storing an externally 
mutable object into BinaryRC4Encryptor$BinaryRC4CipherOutputStream.this$0  At 
BinaryRC4Encryptor.java:[line 134]
M V EI2: new 
org.apache.poi.poifs.crypt.binaryrc4.BinaryRC4Encryptor$BinaryRC4CipherOutputStream(BinaryRC4Encryptor,
 DirectoryNode) may expose internal representation by storing an externally 
mutable object into BinaryRC4Encryptor$BinaryRC4CipherOutputStream.this$0  At 
BinaryRC4Encryptor.java:[line 139]
M V EI: org.apache.poi.ddf.UnknownEscherRecord.getData() may expose internal 
representation by returning UnknownEscherRecord.thedata  At 
UnknownEscherRecord.java:[line 129]
M V EI: org.apache.poi.ddf.UnknownEscherRecord.getChildRecords() may expose 
internal representation by returning UnknownEscherRecord._childRecords  At 
UnknownEscherRecord.java:[line 139]
M P UrF: Unread field: org.apache.poi.hpsf.Decimal.field_5_lo64  At 
Decimal.java:[line 38]
M P UrF: Unread field: org.apache.poi.hpsf.Decimal.field_2_scale  At 
Decimal.java:[line 35]
M P SS: Unread field: org.apache.poi.ss.formula.ptg.UnknownPtg.size; should 
this field be static?  At UnknownPtg.java:[line 25]
M P UrF: Unread field: org.apache.poi.hssf.usermodel.HSSFChart.chartTitleFormat 
 At HSSFChart.java:[line 217]
M P UrF: Unread field: org.apache.poi.ss.formula.atp.TextJoinFunction.evaluator 
 At TextJoinFunction.java:[line 51]
M P UrF: Unread field: org.apache.poi.hpsf.Decimal.field_4_hi32  At 
Decimal.java:[line 37]
M P UrF: Unread field: 
org.apache.poi.ss.formula.atp.PercentRankIncFunction.evaluator  At 
PercentRankIncFunction.java:[line 51]
M P UrF: Unread field: org.apache.poi.hpsf.Decimal.field_1_wReserved  At 
Decimal.java:[line 34]
M P UrF: Unread field: 
org.apache.poi.ss.formula.atp.PercentRankExcFunction.evaluator  At 
PercentRankExcFunction.java:[line 55]
M P UrF: Unread field: org.apache.poi.hpsf.Decimal.field_3_sign  At 
Decimal.java:[line 36]
M V MS: org.apache.poi.hpsf.VariantSupport.SUPPORTED_TYPES should be package 
protected  At VariantSupport.java:[line 55]
M V MS: org.apache.poi.hpsf.DocumentSummaryInformation.FORMAT_ID should be 
package protected  At DocumentSummaryInformation.java:[line 51]
M V MS: org.apache.poi.ss.formula.eval.FunctionEval.functions should be package 
protected  At FunctionEval.java:[line 59]
M M IS: Inconsistent synchronization of 
org.apache.poi.poifs.filesystem.DocumentInputStream._current_block_count; 
locked 71% of time  Unsynchronized access at DocumentInputStream.java:[line 287]
M M IS: Inconsistent synchronization of 
org.apache.poi.ss.format.CellDateFormatter.sFmt; locked 66% of time  
Unsynchronized access at CellDateFormatter.java:[line 109]
M M IS: Inconsistent synchronization of 
org.apache.poi.ss.format.CellDateFormatter.amPmUpper; locked 50% of time  
Unsynchronized access at CellDateFormatter.java:[line 122]
M M IS: Inconsistent synchronization of 
org.apache.poi.poifs.filesystem.DocumentInputStream._buffer; locked 50% of time 
 Unsynchronized access at DocumentInputStream.java:[line 286]
M M IS: Inconsistent synchronization of 
org.apache.poi.hpsf.ClassIDPredefined.classId; locked 66% of time  
Unsynchronized access at ClassIDPredefined.java:[line 132]
M M IS: Inconsistent synchronization of 
org.apache.poi.poifs.filesystem.DocumentInputStream._data; locked 80% of time  
Unsynchronized access at DocumentInputStream.java:[line 288]
SpotBugs ended with exit code 1

> Task :poi-ooxml:compileTestJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFFont.java>:20:
 warning: [deprecation] org.apache.poi.ss.usermodel.FontCharset in 
org.apache.poi.ss.usermodel has been deprecated
import static org.apache.poi.ss.usermodel.FontCharset.*;
                                         ^

> Task :poi-examples:compileJava
> Task :poi-examples:compileJava9 SKIPPED
> Task :poi-examples:cacheJava9 NO-SOURCE
> Task :poi-examples:classes
> Task :poi-examples:jar

> Task :poi-ooxml:compileTestJava
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xssf/usermodel/TestXSSFWorkbook.java>:1362:
 warning: [deprecation] getCTExternalLink() in 
org.apache.poi.xssf.model.ExternalLinksTable has been deprecated
                CTExternalLink link = 
workbook2.getExternalLinksTable().get(0).getCTExternalLink();
                                                                              ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xddf/usermodel/chart/TestXDDFChartRemoveSeries.java>:129:
 warning: [deprecation] getSeries() in 
org.apache.poi.xddf.usermodel.chart.XDDFChartData has been deprecated
        assertThrows(UnsupportedOperationException.class, () -> 
chartData.getSeries().remove(0));
                                                                         ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:203:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
        assertEquals(7, run.getFontSize());
                           ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:211:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
        assertEquals(25, run.getFontSize());
                            ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:589:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(-1, run.getFontSize());
                                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:592:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(10, run.getFontSize());
                                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:595:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(Short.MAX_VALUE - 1, run.getFontSize());
                                                 ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:598:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(Short.MAX_VALUE, run.getFontSize());
                                             ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:601:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(Short.MAX_VALUE + 1, run.getFontSize());
                                                 ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:604:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(Integer.MAX_VALUE - 1, run.getFontSize());
                                                   ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:607:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(Integer.MAX_VALUE, run.getFontSize());
                                               ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:610:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(-1, run.getFontSize());
                                ^
<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi-ooxml/src/test/java/org/apache/poi/xwpf/usermodel/TestXWPFRun.java>:658:
 warning: [deprecation] getFontSize() in org.apache.poi.xwpf.usermodel.XWPFRun 
has been deprecated
            assertEquals(10, run.getFontSize());
                                ^
14 warnings

> Task :poi-ooxml:testClasses
> Task :poi-excelant:javadoc
> Task :poi-ooxml:testJar
> Task :poi-ooxml:compileJava9 SKIPPED
> Task :poi-ooxml:cacheJava9 NO-SOURCE
> Task :poi-ooxml:compileTest9 SKIPPED
> Task :poi-ooxml:cacheTest9 NO-SOURCE
> Task :poi-excelant:compileTestJava
> Task :poi-excelant:compileTest9 SKIPPED
> Task :poi-excelant:cacheTest9 NO-SOURCE
> Task :poi-excelant:javadocJar
> Task :poi-excelant:assemble
> Task :poi-excelant:forbiddenApisMain
> Task :poi-excelant:testClasses
> Task :poi-integration:compileTestJava
> Task :poi-integration:compileTest9 SKIPPED
> Task :poi-integration:cacheTest9 NO-SOURCE
> Task :poi-integration:testClasses
> Task :poi-excelant:forbiddenApisTest
> Task :poi-excelant:forbiddenApis
> Task :poi-integration:forbiddenApisTest
> Task :poi-integration:forbiddenApis
> Task :poi-excelant:testJar
> Task :poi-integration:testJar

> Task :poi-excelant:spotbugsMain
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-ooxml-lite:compileJava
> Task :poi-examples:javadoc

> Task :poi-excelant:spotbugsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-examples:javadocJar
> Task :poi-examples:assemble

> Task :poi-integration:spotbugsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-examples:forbiddenApisMain
> Task :poi-examples:compileTestJava
> Task :poi-examples:testClasses
> Task :poi-examples:forbiddenApisTest
> Task :poi-examples:forbiddenApis
> Task :allJavaDoc
> Task :poi-scratchpad:javadoc
> Task :poi-ooxml:javadoc
> Task :poi-excelant:test
> Task :poi-integration:test

> Task :poi-excelant:spotbugsMain
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntSet.setWorkbookUtil(ExcelAntWorkbookUtil) 
may expose internal representation by storing an externally mutable object into 
ExcelAntSet.wbUtil  At ExcelAntSet.java:[line 39]
M V EI: org.apache.poi.ss.excelant.util.ExcelAntWorkbookUtil.getWorkbook() may 
expose internal representation by returning ExcelAntWorkbookUtil.workbook  At 
ExcelAntWorkbookUtil.java:[line 193]

> Task :poi:test

6846 tests completed, 3 failed, 29 skipped

> Task :poi:test FAILED

> Task :poi-examples:spotbugsMain
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-excelant:spotbugsMain
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntTest.setWorkbookUtil(ExcelAntWorkbookUtil) 
may expose internal representation by storing an externally mutable object into 
ExcelAntTest.workbookUtil  At ExcelAntTest.java:[line 67]
M D DCN: Do not catch NullPointerException like in 
org.apache.poi.ss.excelant.ExcelAntTest.execute()  At ExcelAntTest.java:[line 
180]
M V EI2: 
org.apache.poi.ss.excelant.ExcelAntTask.addPrecision(ExcelAntPrecision) may 
expose internal representation by storing an externally mutable object into 
ExcelAntTask.precision  At ExcelAntTask.java:[line 55]
SpotBugs ended with exit code 1

> Task :poi-examples:spotbugsTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

> Task :poi-examples:test

> Task :poi-integration:spotbugsTest
M V MS: org.apache.poi.stress.AbstractFileHandler.EXPECTED_EXTRACTOR_FAILURES 
is a mutable collection which should be package protected  At 
AbstractFileHandler.java:[line 48]
M V MS: org.apache.poi.stress.TestAllFiles.SCAN_EXCLUDES should be package 
protected  At TestAllFiles.java:[line 76]
M V MS: org.apache.poi.stress.TestAllFiles.SCAN_EXCLUDES_NOSCRATCHPAD should be 
package protected  At TestAllFiles.java:[line 92]
SpotBugs ended with exit code 1

> Task :poi-examples:spotbugsMain
M V EI2: new org.apache.poi.examples.hwpf.Word2Forrest(HWPFDocument, 
OutputStream) may expose internal representation by storing an externally 
mutable object into Word2Forrest._doc  At Word2Forrest.java:[line 46]
H B Nm: The class name 
org.apache.poi.examples.hssf.usermodel.AddDimensionedImage shadows the simple 
name of the superclass org.apache.poi.examples.ss.AddDimensionedImage  At 
AddDimensionedImage.java:[line 29]
M V EI2: 
org.apache.poi.examples.hssf.usermodel.EventExample.processRecord(Record) may 
expose internal representation by storing an externally mutable object into 
EventExample.sstrec  At EventExample.java:[line 80]
M D SF: Switch statement found in 
org.apache.poi.examples.hssf.usermodel.EventExample.processRecord(Record) where 
default case is missing  At EventExample.java:[lines 50-88]
M V EI2: new org.apache.poi.examples.xssf.eventusermodel.XLSX2CSV(OPCPackage, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLSX2CSV.xlsxPackage  At XLSX2CSV.java:[line 181]
M V EI2: new org.apache.poi.examples.xssf.eventusermodel.XLSX2CSV(OPCPackage, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLSX2CSV.output  At XLSX2CSV.java:[line 182]
M V EI2: new 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra(POIFSFileSystem, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLS2CSVmra.output  At XLS2CSVmra.java:[line 92]
M V EI2: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.processRecord(Record) 
may expose internal representation by storing an externally mutable object into 
XLS2CSVmra.sstRecord  At XLS2CSVmra.java:[line 172]
M V EI2: new 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra(POIFSFileSystem, 
PrintStream, int) may expose internal representation by storing an externally 
mutable object into XLS2CSVmra.fs  At XLS2CSVmra.java:[line 91]
M V EI2: new org.apache.poi.examples.ss.html.HSSFHtmlHelper(HSSFWorkbook) may 
expose internal representation by storing an externally mutable object into 
HSSFHtmlHelper.wb  At HSSFHtmlHelper.java:[line 38]
M V EI: 
org.apache.poi.examples.hssf.usermodel.InCellLists$MultiLevelListItem.getLowerLevelItems()
 may expose internal representation by returning 
InCellLists$MultiLevelListItem.lowerLevelItems  At InCellLists.java:[line 536]
M V EI2: new 
org.apache.poi.examples.hssf.usermodel.InCellLists$MultiLevelListItem(String, 
List) may expose internal representation by storing an externally mutable 
object into InCellLists$MultiLevelListItem.lowerLevelItems  At 
InCellLists.java:[line 516]
M V EI2: new 
org.apache.poi.examples.ss.formula.CheckFunctionsSupported(Workbook) may expose 
internal representation by storing an externally mutable object into 
CheckFunctionsSupported.workbook  At CheckFunctionsSupported.java:[line 103]
M C UwF: Unwritten field: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.workbookBuildingListener 
 At XLS2CSVmra.java:[line 151]
M P SS: Unread field: 
org.apache.poi.examples.hssf.eventusermodel.XLS2CSVmra.outputFormulaValues; 
should this field be static?  At XLS2CSVmra.java:[line 64]
SpotBugs ended with exit code 1

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':poi:test'.
> There were failing tests. See the report at: 
> file://<https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/ws/poi/build/reports/tests/test/index.html>

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

See 
https://docs.gradle.org/7.4.1/userguide/command_line_interface.html#sec:command_line_warnings

Execution optimizations have been disabled for 1 invalid unit(s) of work during 
this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 13m 39s
95 actionable tasks: 90 executed, 5 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
[SpotBugs] Skipping execution of recorder since overall result is 'FAILURE'
Archiving artifacts
[Fast Archiver] Compressed 51.47 MB of artifacts by 10.6% relative to #618
Recording test results
[Checks API] No suitable checks publisher found.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to