[ https://issues.apache.org/jira/browse/COCOON3-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Francesco Chicchiriccò updated COCOON3-138: ------------------------------------------- Summary: Cannot build with JDK 1.8 (was: Cannot build with JDK 8) > Cannot build with JDK 1.8 > ------------------------- > > Key: COCOON3-138 > URL: https://issues.apache.org/jira/browse/COCOON3-138 > Project: Cocoon 3 > Issue Type: Bug > Components: cocoon-optional > Reporter: Francesco Chicchiriccò > Fix For: 3.0.0-beta-1 > > > Build of the current source tree fails with JDK 1.8: > {code} > [INFO] > > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Apache Cocoon 3: Optional 3.0.0-beta-1-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ cocoon-optional --- > [INFO] Deleting /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/target > [INFO] > [INFO] --- maven-enforcer-plugin:1.2:enforce (enforce-maven) @ > cocoon-optional --- > [INFO] > [INFO] --- maven-remote-resources-plugin:1.4:process (default) @ > cocoon-optional --- > [INFO] > [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ > cocoon-optional --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 4 resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ > cocoon-optional --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 33 source files to > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/target/classes > [WARNING] > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/csv/CSVGenerator.java: > > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/csv/CSVGenerator.java > uses unchecked or unsafe operations. > [WARNING] > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/src/main/java/org/apache/cocoon/optional/pipeline/components/sax/csv/CSVGenerator.java: > Recompile with -Xlint:unchecked for details. > [INFO] > [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ > cocoon-optional --- > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] Copying 16 resources > [INFO] Copying 3 resources > [INFO] > [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ > cocoon-optional --- > [INFO] Changes detected - recompiling the module! > [INFO] Compiling 15 source files to > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/target/test-classes > [WARNING] > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java: > Some input files use or override a deprecated API. > [WARNING] > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/src/test/java/org/apache/cocoon/optional/pipeline/components/sax/jaxb/JAXBGeneratorTestCase.java: > Recompile with -Xlint:deprecation for details. > [INFO] > [INFO] --- maven-surefire-plugin:2.14:test (default-test) @ cocoon-optional > --- > [INFO] Surefire report directory: > /home/ilgrosso/work/cocoon/cocoon3/cocoon-optional/target/surefire-reports > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running > org.apache.cocoon.optional.pipeline.components.sax.betwixt.BetwixtBeanGeneratorTest > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.generator.AddRootElementGeneratorTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.fop.FopSerializerTestCase > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.599 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.calendar.CalendarGeneratorTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.csv.CSVGeneratorTest > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.neko.NekoGeneratorTestCase > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.solr.SolrConsumerTestCase > Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.085 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.tika.TikaGeneratorTestCase > Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.676 sec <<< > FAILURE! > testTikaPDFParse(org.apache.cocoon.optional.pipeline.components.sax.tika.TikaGeneratorTestCase) > Time elapsed: 0.424 sec <<< FAILURE! > java.lang.AssertionError: org.custommonkey.xmlunit.DetailedDiff > [not identical] Expected sequence of child nodes '1' but was '5' - comparing > <meta...> at /html[1]/head[1]/meta[1] to <meta...> at /html[1]/head[1]/meta[3] > [not identical] Expected sequence of child nodes '3' but was '7' - comparing > <meta...> at /html[1]/head[1]/meta[2] to <meta...> at /html[1]/head[1]/meta[4] > [not identical] Expected sequence of child nodes '5' but was '27' - comparing > <meta...> at /html[1]/head[1]/meta[3] to <meta...> at > /html[1]/head[1]/meta[14] > [not identical] Expected sequence of child nodes '7' but was '9' - comparing > <meta...> at /html[1]/head[1]/meta[4] to <meta...> at /html[1]/head[1]/meta[5] > [different] Expected text value ' > ' but was ' > ' - comparing <head ...> > </head> at /html[1]/head[1]/text()[5] to <head ...> > </head> at /html[1]/head[1]/text()[5] > [not identical] Expected sequence of child nodes '9' but was '17' - comparing > <meta...> at /html[1]/head[1]/meta[5] to <meta...> at /html[1]/head[1]/meta[9] > [not identical] Expected sequence of child nodes '11' but was '21' - > comparing <meta...> at /html[1]/head[1]/meta[6] to <meta...> at > /html[1]/head[1]/meta[11] > [not identical] Expected sequence of child nodes '13' but was '1' - comparing > <meta...> at /html[1]/head[1]/meta[7] to <meta...> at /html[1]/head[1]/meta[1] > [not identical] Expected sequence of child nodes '15' but was '11' - > comparing <meta...> at /html[1]/head[1]/meta[8] to <meta...> at > /html[1]/head[1]/meta[6] > [not identical] Expected sequence of child nodes '17' but was '13' - > comparing <meta...> at /html[1]/head[1]/meta[9] to <meta...> at > /html[1]/head[1]/meta[7] > [not identical] Expected sequence of child nodes '19' but was '3' - comparing > <meta...> at /html[1]/head[1]/meta[10] to <meta...> at > /html[1]/head[1]/meta[2] > [different] Expected text value ' > ' but was ' > ' - comparing <head ...> > </head> at /html[1]/head[1]/text()[11] to <head ...> > </head> at /html[1]/head[1]/text()[11] > [not identical] Expected sequence of child nodes '21' but was '25' - > comparing <meta...> at /html[1]/head[1]/meta[11] to <meta...> at > /html[1]/head[1]/meta[13] > [not identical] Expected sequence of child nodes '25' but was '29' - > comparing <meta...> at /html[1]/head[1]/meta[13] to <meta...> at > /html[1]/head[1]/meta[15] > [not identical] Expected sequence of child nodes '27' but was '15' - > comparing <meta...> at /html[1]/head[1]/meta[14] to <meta...> at > /html[1]/head[1]/meta[8] > [not identical] Expected sequence of child nodes '29' but was '19' - > comparing <meta...> at /html[1]/head[1]/meta[15] to <meta...> at > /html[1]/head[1]/meta[10] > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.assertTrue(Assert.java:41) > at > org.apache.cocoon.optional.pipeline.components.sax.tika.TikaGeneratorTestCase.processAndCompare(TikaGeneratorTestCase.java:99) > at > org.apache.cocoon.optional.pipeline.components.sax.tika.TikaGeneratorTestCase.testTikaPDFParse(TikaGeneratorTestCase.java:56) > Running > org.apache.cocoon.optional.pipeline.components.sax.jaxb.JAXBGeneratorTestCase > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.24 sec > Running > org.apache.cocoon.optional.pipeline.components.sax.directory.DirectoryGeneratorTestCase > Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec > Results : > Failed tests: > TikaGeneratorTestCase.testTikaPDFParse:56->processAndCompare:99 > org.custommonkey.xmlunit.DetailedDiff > [not identical] Expected sequence of child nodes '1' but was '5' - comparing > <meta...> at /html[1]/head[1]/meta[1] to <meta...> at /html[1]/head[1]/meta[3] > [not identical] Expected sequence of child nodes '3' but was '7' - comparing > <meta...> at /html[1]/head[1]/meta[2] to <meta...> at /html[1]/head[1]/meta[4] > [not identical] Expected sequence of child nodes '5' but was '27' - comparing > <meta...> at /html[1]/head[1]/meta[3] to <meta...> at > /html[1]/head[1]/meta[14] > [not identical] Expected sequence of child nodes '7' but was '9' - comparing > <meta...> at /html[1]/head[1]/meta[4] to <meta...> at /html[1]/head[1]/meta[5] > [different] Expected text value ' > ' but was ' > ' - comparing <head ...> > </head> at /html[1]/head[1]/text()[5] to <head ...> > </head> at /html[1]/head[1]/text()[5] > [not identical] Expected sequence of child nodes '9' but was '17' - comparing > <meta...> at /html[1]/head[1]/meta[5] to <meta...> at /html[1]/head[1]/meta[9] > [not identical] Expected sequence of child nodes '11' but was '21' - > comparing <meta...> at /html[1]/head[1]/meta[6] to <meta...> at > /html[1]/head[1]/meta[11] > [not identical] Expected sequence of child nodes '13' but was '1' - comparing > <meta...> at /html[1]/head[1]/meta[7] to <meta...> at /html[1]/head[1]/meta[1] > [not identical] Expected sequence of child nodes '15' but was '11' - > comparing <meta...> at /html[1]/head[1]/meta[8] to <meta...> at > /html[1]/head[1]/meta[6] > [not identical] Expected sequence of child nodes '17' but was '13' - > comparing <meta...> at /html[1]/head[1]/meta[9] to <meta...> at > /html[1]/head[1]/meta[7] > [not identical] Expected sequence of child nodes '19' but was '3' - comparing > <meta...> at /html[1]/head[1]/meta[10] to <meta...> at > /html[1]/head[1]/meta[2] > [different] Expected text value ' > ' but was ' > ' - comparing <head ...> > </head> at /html[1]/head[1]/text()[11] to <head ...> > </head> at /html[1]/head[1]/text()[11] > [not identical] Expected sequence of child nodes '21' but was '25' - > comparing <meta...> at /html[1]/head[1]/meta[11] to <meta...> at > /html[1]/head[1]/meta[13] > [not identical] Expected sequence of child nodes '25' but was '29' - > comparing <meta...> at /html[1]/head[1]/meta[13] to <meta...> at > /html[1]/head[1]/meta[15] > [not identical] Expected sequence of child nodes '27' but was '15' - > comparing <meta...> at /html[1]/head[1]/meta[14] to <meta...> at > /html[1]/head[1]/meta[8] > [not identical] Expected sequence of child nodes '29' but was '19' - > comparing <meta...> at /html[1]/head[1]/meta[15] to <meta...> at > /html[1]/head[1]/meta[10] > Tests run: 20, Failures: 1, Errors: 0, Skipped: 0 > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Apache Cocoon 3: Parent ........................... SUCCESS [ 0.825 s] > [INFO] Apache Cocoon 3: Utilities ........................ SUCCESS [ 1.050 s] > [INFO] Apache Cocoon 3: Pipeline ......................... SUCCESS [ 0.292 s] > [INFO] Apache Cocoon 3: SAX .............................. SUCCESS [ 2.914 s] > [INFO] Apache Cocoon 3: CLI .............................. SUCCESS [ 1.115 s] > [INFO] Apache Cocoon 3: Sitemap .......................... SUCCESS [ 0.805 s] > [INFO] Apache Cocoon 3: Controller ....................... SUCCESS [ 0.114 s] > [INFO] Apache Cocoon 3: Servlet .......................... SUCCESS [ 0.247 s] > [INFO] Apache Cocoon 3: Optional ......................... FAILURE [ 3.980 s] > [INFO] Apache cocoon 3: Databases integration components . SKIPPED > [INFO] Apache Cocoon 3: Monitoring ....................... SKIPPED > [INFO] Apache Cocoon 3: REST support ..................... SKIPPED > [INFO] Apache Cocoon 3: Profiling ........................ SKIPPED > [INFO] Apache Cocoon 3: Optional REST components ......... SKIPPED > [INFO] Apache Cocoon 3: String Templates ................. SKIPPED > [INFO] Apache Cocoon 3: Shiro integration ................ SKIPPED > [INFO] Apache Cocoon 3: StAX ............................. SKIPPED > [INFO] Apache Cocoon 3: Wicket Integration ............... SKIPPED > [INFO] Apache Cocoon 3: All dependencies ................. SKIPPED > [INFO] Apache Cocoon 3: Databases sample integration ..... SKIPPED > [INFO] Apache Cocoon 3: Sample ........................... SKIPPED > [INFO] Apache Cocoon 3: Shiro sample integration ......... SKIPPED > [INFO] Apache Cocoon 3: Root ............................. SKIPPED > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 11.649 s > [INFO] Finished at: 2016-09-12T14:10:53+01:00 > [INFO] Final Memory: 58M/657M > [INFO] > ------------------------------------------------------------------------ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)