See <https://builds.apache.org/job/POI/836/changes>

Changes:

[kiwiwings] Bug 58326 - Forbidden APIs patches - first set of changes for 
locale and timezone settings
also includes fixes for
- name shadowing 
- unused deprecated method "getClipRect" in classes extending Graphics2d
- HexDump - replaced intermediate String.format calls with custom padding
- convert testcases to junit4
- closing resources

also tested with an arbitary timezone (PST) and locale (ru)

supresses forbidden apis check for
- LocaleUtil (the only place where Locale.getDefault() and 
TimeZone.getDefault() should be called)
- Classes using FontMetrics - without the actual text it's difficult to return 
something sane

Some usage of UTC and Locale.ROOT might be still wrong, e.g. in MapiMessage we 
don't access the
extended mapi properties, which might contain the timezone

DataFormatter has now a Observable property which need to be observed when 
custom formats are used
and the Locale changes

[kiwiwings] Bug 58326 - Forbidden APIs patches - first set of changes for 
locale and timezone settings
commit single files because of svn failures ...

------------------------------------------
[...truncated 66 lines...]
U         
src\ooxml\java\org\apache\poi\poifs\crypt\dsig\facets\XAdESSignatureFacet.java
U         
src\ooxml\java\org\apache\poi\poifs\crypt\dsig\facets\XAdESXLSignatureFacet.java
U         
src\ooxml\java\org\apache\poi\poifs\crypt\dsig\facets\OOXMLSignatureFacet.java
U         src\ooxml\java\org\apache\poi\xssf\streaming\SXSSFCell.java
U         src\ooxml\java\org\apache\poi\xssf\extractor\XSSFExportToXml.java
U         src\ooxml\java\org\apache\poi\xssf\usermodel\XSSFCell.java
U         src\ooxml\java\org\apache\poi\xssf\usermodel\XSSFRichTextString.java
U         src\ooxml\java\org\apache\poi\xslf\util\PPTX2PNG.java
U         src\testcases\org\apache\poi\util\TestStringUtil.java
U         src\testcases\org\apache\poi\util\TestHexDump.java
U         src\testcases\org\apache\poi\hpsf\basic\TestWrite.java
U         src\testcases\org\apache\poi\hpsf\basic\TestWriteWellKnown.java
U         src\testcases\org\apache\poi\hssf\extractor\TestExcelExtractor.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestReadWriteChart.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestHSSFDataFormatter.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestHSSFDateUtil.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestHSSFCell.java
U         
src\testcases\org\apache\poi\hssf\usermodel\TestFormulaEvaluatorBugs.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestText.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestBugs.java
U         src\testcases\org\apache\poi\hssf\usermodel\TestCellStyle.java
U         src\testcases\org\apache\poi\ss\format\CellFormatTestBase.java
U         src\testcases\org\apache\poi\ss\format\TestCellFormat.java
U         src\testcases\org\apache\poi\ss\util\TestDateFormatConverter.java
U         
src\testcases\org\apache\poi\ss\usermodel\BaseTestSheetAutosizeColumn.java
U         src\testcases\org\apache\poi\ss\usermodel\BaseTestCell.java
U         src\testcases\org\apache\poi\ss\usermodel\TestDateUtil.java
U         src\testcases\org\apache\poi\ss\usermodel\TestDataFormatter.java
U         src\testcases\org\apache\poi\ss\formula\functions\TestTime.java
U         src\testcases\org\apache\poi\ss\formula\functions\TestEDate.java
U         src\testcases\org\apache\poi\ss\formula\functions\TestText.java
U         src\testcases\org\apache\poi\ss\formula\functions\TestEOMonth.java
U         src\testcases\org\apache\poi\ss\formula\functions\TestDays360.java
U         src\testcases\org\apache\poi\ss\formula\atp\TestWorkdayFunction.java
U         
src\testcases\org\apache\poi\ss\formula\atp\TestYearFracCalculator.java
U         src\testcases\org\apache\poi\ss\formula\atp\TestDateParser.java
U         src\testcases\org\apache\poi\ss\formula\atp\TestWorkdayCalculator.java
U         
src\testcases\org\apache\poi\ss\formula\atp\TestNetworkdaysFunction.java
U         
src\testcases\org\apache\poi\ss\formula\atp\TestYearFracCalculatorFromSpreadsheet.java
U         
src\testcases\org\apache\poi\ss\formula\eval\TestFormulasFromSpreadsheet.java
U         build.xml
Fetching 'https://svn.apache.org/repos/asf/poi/site/forrest.properties' at -1 
into 'F:\hudson\hudson-slave\workspace\POI\forrest.properties'
Fetching 'https://svn.apache.org/repos/asf/poi/site/src/documentation' at -1 
into 'F:\hudson\hudson-slave\workspace\POI\src\documentation'
At revision 1701693
At revision 1701692
WARNING: clock of the subversion server appears to be out of sync. This can 
result in inconsistent check out behavior.
no change for http://svn.apache.org/repos/asf/poi/trunk/forrest.properties 
since the previous build
no change for https://svn.apache.org/repos/asf/poi/site/src/documentation since 
the previous build
Deleting old artifacts from #834
[EnvInject] - Executing scripts and injecting environment variables after the 
SCM step.
[EnvInject] - Injecting as environment variables the properties content 
LANG=en_US.UTF-8

[EnvInject] - Variables injected successfully.
[POI] $ cmd.exe /C '"f:\hudson\tools\ant\latest\bin\ant.bat 
-Dcoverage.enabled=true clean jenkins && exit %%ERRORLEVEL%%"'
Buildfile: <https://builds.apache.org/job/POI/ws/build.xml>

clean:
   [delete] Deleting directory <https://builds.apache.org/job/POI/ws/build>

check-jars:

fetch-jars:

check-ooxml-jars:

fetch-ooxml-jars:

init:
    [mkdir] Created dir: <https://builds.apache.org/job/POI/ws/build>
    [mkdir] Created dir: <https://builds.apache.org/job/POI/ws/build\classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\test-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\test-results>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\scratchpad-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\scratchpad-test-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\scratchpad-test-results>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\geometry-java>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\ooxml-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\ooxml-test-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\ooxml-test-results>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\excelant-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\excelant-test-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\excelant-test-results>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\examples-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\integration-test-classes>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\integration-test-results>
    [mkdir] Created dir: <https://builds.apache.org/job/POI/ws/build\dist>
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\tmp\site\build\site>
     [echo] Using Java: 1.6.0_27/1.6.0_27-b07/20.2-b06/Java HotSpot(TM) 64-Bit 
Server VM from Sun Microsystems Inc. on Windows Server 2008: 6.0

compile-main:
    [javac] Compiling 1179 source files to 
<https://builds.apache.org/job/POI/ws/build\classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 515 source files to 
<https://builds.apache.org/job/POI/ws/build\test-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 4 files to 
<https://builds.apache.org/job/POI/ws/build\classes>

check-ooxml-xsds:

fetch-ooxml-xsds:

generate-geometry:

compile-scratchpad:
    [javac] Compiling 506 source files to 
<https://builds.apache.org/job/POI/ws/build\scratchpad-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Compiling 182 source files to 
<https://builds.apache.org/job/POI/ws/build\scratchpad-test-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: 
<https://builds.apache.org/job/POI/ws/src\scratchpad\testcases\org\apache\poi\hslf\TestReWriteSanity.java>
 uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 2 files to 
<https://builds.apache.org/job/POI/ws/build\scratchpad-classes>

check-compiled-ooxml-xsds:

compile-ooxml-xsds:

compile-ooxml:
    [javac] Compiling 350 source files to 
<https://builds.apache.org/job/POI/ws/build\ooxml-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Compiling 186 source files to 
<https://builds.apache.org/job/POI/ws/build\ooxml-test-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [copy] Copying 2 files to 
<https://builds.apache.org/job/POI/ws/build\ooxml-classes>

compile-examples:
    [javac] Compiling 137 source files to 
<https://builds.apache.org/job/POI/ws/build\examples-classes>
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to 
<https://builds.apache.org/job/POI/ws/build\examples-classes>

compile-excelant:
    [javac] Compiling 14 source files to 
<https://builds.apache.org/job/POI/ws/build\excelant-classes>
    [javac] Note: 
<https://builds.apache.org/job/POI/ws/src\excelant\java\org\apache\poi\ss\excelant\util\ExcelAntWorkbookUtil.java>
 uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Compiling 13 source files to 
<https://builds.apache.org/job/POI/ws/build\excelant-test-classes>
     [copy] Copying 1 file to 
<https://builds.apache.org/job/POI/ws/build\excelant-classes>

compile:

compile-ooxml-lite:
    [mkdir] Created dir: 
<https://builds.apache.org/job/POI/ws/build\ooxml-lite-merged>
      [jar] Building jar: 
<https://builds.apache.org/job/POI/ws/build\ooxml-lite-merged\ooxml-lite-merged.jar>
     [java] Collecting unit tests from 
<https://builds.apache.org/job/POI/ws/build\ooxml-test-classes>
     [java] Found 168 classes
     [java] 
......................................................I..................................................................................................I....SLF4J:
 Failed to load class "org.slf4j.impl.StaticLoggerBinder".
     [java] SLF4J: Defaulting to no-operation (NOP) logger implementation
     [java] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for 
further details.
     [java] 
............E.......................................................II..........JAXP:
 find factoryId =javax.xml.stream.XMLInputFactory
     [java] JAXP: found system property, 
value=com.sun.xml.internal.stream.XMLInputFactoryImpl
     [java] JAXP: created new instance of class 
com.sun.xml.internal.stream.XMLInputFactoryImpl using ClassLoader: null
     [java] 
........................................................................................................................................Setting
 col: 0 and row 0
     [java] Setting col: 1 and row 1
     [java] 
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Warning
 - Row 13 has no cell 1, can't figure out test name
     [java] 
.....III.II.......I......................................................[Fatal 
Error] :1:1: The parser has encountered more than "4,096" entity expansions in 
this document; this is the limit imposed by the application.
     [java] [Fatal Error] :1:1: The parser has encountered more than "4,096" 
entity expansions in this document; this is the limit imposed by the 
application.
     [java] 
....................I......I......................I.............................................................................................................I.............................................................................................org.apache.poi.ss.usermodel.CellValue
 [12.0]
     [java] org.apache.poi.ss.usermodel.CellValue [12.0]
     [java] .....org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] org.apache.poi.ss.usermodel.CellValue [1.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [2.0]
     [java] .org.apache.poi.ss.usermodel.CellValue [3.0]
     [java] 
......................................................................................................................................................................................................................................................Done
     [java] ...........<?xml version="1.0" encoding="UTF-8"?>
     [java] <worksheet 
xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main";><dimension 
ref="A1"/><sheetViews><sheetView workbookViewId="0" 
tabSelected="true"/></sheetViews><sheetFormatPr 
defaultRowHeight="15.0"/><sheetData/><pageMargins bottom="0.75" footer="0.3" 
header="0.3" left="0.7" right="0.7" top="0.75"/></worksheet>
     [java] ........................................Name: /word/document.xml - 
Content Type: 
application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml
     [java] 
................................................................................................................................................
     [java] Time: 682.77
     [java] There was 1 failure:
     [java] 1) testDateFormat(org.apache.poi.ss.format.TestCellFormatPart)
     [java] org.junit.ComparisonFailure: format "h:m:s" expected:<"[4]:5:6"> 
but was:<"[3]:5:6">
     [java]     at org.junit.Assert.assertEquals(Assert.java:115)
     [java]     at 
org.apache.poi.ss.format.CellFormatTestBase$CellValue.equivalent(CellFormatTestBase.java:93)
     [java]     at 
org.apache.poi.ss.format.CellFormatTestBase.tryColor(CellFormatTestBase.java:245)
     [java]     at 
org.apache.poi.ss.format.CellFormatTestBase.tryFormat(CellFormatTestBase.java:219)
     [java]     at 
org.apache.poi.ss.format.CellFormatTestBase.runFormatTests(CellFormatTestBase.java:127)
     [java]     at 
org.apache.poi.ss.format.TestCellFormatPart.testDateFormat(TestCellFormatPart.java:105)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
     [java]     at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
     [java]     at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
     [java]     at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
     [java]     at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
     [java]     at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
     [java]     at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java]     at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java]     at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java]     at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java]     at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
     [java]     at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:128)
     [java]     at org.junit.runners.Suite.runChild(Suite.java:27)
     [java]     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
     [java]     at 
org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
     [java]     at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
     [java]     at 
org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
     [java]     at 
org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
     [java]     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:105)
     [java]     at org.junit.runner.JUnitCore.run(JUnitCore.java:94)
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:103)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:86)
     [java] 
     [java] FAILURES!!!
     [java] Tests run: 1695,  Failures: 1
     [java] 
     [java] Exception in thread "main" java.lang.RuntimeException: Tests did 
not succeed, cannot build ooxml-lite jar
     [java]     at org.apache.poi.util.OOXMLLite.build(OOXMLLite.java:105)
     [java]     at org.apache.poi.util.OOXMLLite.main(OOXMLLite.java:86)

BUILD FAILED
<https://builds.apache.org/job/POI/ws/build.xml>:1201: Java returned: 1

Total time: 20 minutes 1 second
Build step 'Invoke Ant' marked build as failure
[FINDBUGS] Skipping publisher since build result is FAILURE
[WARNINGS] Skipping publisher since build result is FAILURE
Archiving artifacts
Sending artifact delta relative to POI #818
Archived 16 artifacts
Archive block size is 32768
Received 1948 blocks and 50977 bytes
Compression is 99.9%
Took 1 min 16 sec
Recording test results

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

Reply via email to