See <https://builds.apache.org/job/POI-JDK8/563/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 169 lines...]
U         src/java/org/apache/poi/ss/formula/functions/EOMonth.java
U         src/java/org/apache/poi/ss/formula/functions/Days360.java
U         src/java/org/apache/poi/ss/formula/functions/DStarRunner.java
U         src/java/org/apache/poi/ss/formula/functions/Dec2Hex.java
U         src/java/org/apache/poi/ss/formula/functions/DGet.java
U         src/java/org/apache/poi/ss/formula/functions/DMin.java
U         src/java/org/apache/poi/ss/formula/functions/DateFunc.java
U         src/java/org/apache/poi/ss/formula/functions/IDStarAlgorithm.java
U         src/java/org/apache/poi/ss/formula/functions/WeekNum.java
U         src/java/org/apache/poi/ss/formula/functions/Today.java
U         src/java/org/apache/poi/ss/formula/functions/EDate.java
U         src/java/org/apache/poi/ss/formula/functions/TextFunction.java
U         src/java/org/apache/poi/ss/formula/udf/DefaultUDFFinder.java
U         src/java/org/apache/poi/ss/formula/atp/YearFracCalculator.java
U         src/java/org/apache/poi/ss/formula/atp/DateParser.java
U         src/java/org/apache/poi/ss/formula/atp/WorkdayCalculator.java
U         src/java/org/apache/poi/ss/formula/atp/AnalysisToolPak.java
U         src/java/org/apache/poi/ss/formula/eval/FunctionEval.java
U         src/java/org/apache/poi/ss/formula/ptg/AbstractFunctionPtg.java
U         src/java/org/apache/poi/ss/formula/function/FunctionDataBuilder.java
U         src/java/org/apache/poi/hpsf/CodePageString.java
U         src/java/org/apache/poi/hpsf/SpecialPropertySet.java
U         src/java/org/apache/poi/hpsf/ClassID.java
U         src/java/org/apache/poi/hpsf/Property.java
U         src/java/org/apache/poi/hpsf/wellknown/SectionIDMap.java
U         src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java
U         build.xml
U         doap_POI.rdf
U         .settings/org.eclipse.jdt.core.prefs
Fetching 'https://svn.apache.org/repos/asf/poi/site/forrest.properties' at -1 
into '/x1/jenkins/jenkins-slave/workspace/POI-JDK8/forrest.properties'
Fetching 'https://svn.apache.org/repos/asf/poi/site/src/documentation' at -1 
into '/x1/jenkins/jenkins-slave/workspace/POI-JDK8/src/documentation'
U         src/documentation/content/xdocs/status.xml
At revision 1701709
At revision 1701709
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
[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-JDK8] $ /home/jenkins/tools/ant/latest/bin/ant -Dcoverage.enabled=true 
clean jenkins
Buildfile: /x1/jenkins/jenkins-slave/workspace/POI-JDK8/build.xml

clean:
   [delete] Deleting directory 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build

check-jars:

fetch-jars:

check-ooxml-jars:

fetch-ooxml-jars:

init:
    [mkdir] Created dir: /x1/jenkins/jenkins-slave/workspace/POI-JDK8/build
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/test-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/test-results
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-test-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-test-results
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/geometry-java
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-test-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-test-results
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-test-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-test-results
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/examples-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/integration-test-classes
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/integration-test-results
    [mkdir] Created dir: /x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/dist
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/tmp/site/build/site
     [echo] Using Java: 1.8.0_20/1.8.0_20-b26/25.20-b23/Java HotSpot(TM) 64-Bit 
Server VM from Oracle Corporation on Linux: 3.2.0-89-generic

compile-main:
    [javac] Compiling 1179 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [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] 1 warning
    [javac] Compiling 515 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/test-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [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] 1 warning
     [copy] Copying 4 files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/classes

check-ooxml-xsds:

fetch-ooxml-xsds:

generate-geometry:

compile-scratchpad:
    [javac] Compiling 506 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [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] 1 warning
    [javac] Compiling 182 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-test-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/src/scratchpad/testcases/org/apache/poi/hslf/TestReWriteSanity.java
 uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning
     [copy] Copying 2 files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/scratchpad-classes

check-compiled-ooxml-xsds:

compile-ooxml-xsds:

compile-ooxml:
    [javac] Compiling 350 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 warning
    [javac] Compiling 186 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-test-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 1 warning
     [copy] Copying 2 files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-classes

compile-examples:
    [javac] Compiling 137 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/examples-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [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] 1 warning
     [copy] Copying 1 file to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/examples-classes

compile-excelant:
    [javac] Compiling 14 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] Note: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/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] 1 warning
    [javac] Compiling 13 source files to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-test-classes
    [javac] warning: [options] bootstrap class path not set in conjunction with 
-source 1.6
    [javac] 1 warning
     [copy] Copying 1 file to 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/excelant-classes

compile:

compile-ooxml-lite:
    [mkdir] Created dir: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-lite-merged
      [jar] Building jar: 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-lite-merged/ooxml-lite-merged.jar
     [java] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option 
MaxPermSize=256m; support was removed in 8.0
     [java] Collecting unit tests from 
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build/ooxml-test-classes
     [java] Found 168 classes
     [java] .............E....................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] 
.....................................................................................Name:
 /word/document.xml - Content Type: 
application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml
     [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] ......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] 
.........................................................................................................................................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] .....................................................[Fatal Error] 
:1:1: JAXP00010001: The parser has encountered more than "4096" entity 
expansions in this document; this is the limit imposed by the JDK.
     [java] [Fatal Error] :1:1: JAXP00010001: The parser has encountered more 
than "4096" entity expansions in this document; this is the limit imposed by 
the JDK.
     [java] 
....................I......I......................I.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................III.II.......I.................................................................................................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] 
...............................II......................................I.......................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)
     [java] ..................................
     [java] Time: 83.619
     [java] There was 1 failure:
     [java] 1) testDateFormat(org.apache.poi.ss.format.TestCellFormatPart)
     [java] org.junit.ComparisonFailure: format "h:m:s" expected:<"1[4]:35:27"> 
but was:<"1[3]:35:27">
     [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:62)
     [java]     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java]     at java.lang.reflect.Method.invoke(Method.java:483)
     [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] 

BUILD FAILED
/x1/jenkins/jenkins-slave/workspace/POI-JDK8/build.xml:1201: Java returned: 1

Total time: 2 minutes 34 seconds
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
Recording test results

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

Reply via email to