Yeah they changed it to "default" to make implementations easier.
They also added another default method to iterator, so you can now use it with a closure, very nice: iterator.forEachRemaining(item -> System.out.println(item)); The same applies to Iterable: iterable.forEach(item -> System.out.println(item)); Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Robert Muir [mailto:[email protected]] > Sent: Wednesday, November 26, 2014 6:06 PM > To: [email protected] > Subject: Re: [JENKINS] Lucene-Solr-Tests-5.x-Java7 - Build # 2239 - Failure > > Ill take care of this... i suppose it has default method impls in java 8, so > you > have to run with java7 to catch this. > > too bad the compiler cant catch it, thats garbage. > > On Wed, Nov 26, 2014 at 12:03 PM, Apache Jenkins Server > <[email protected]> wrote: > > Build: https://builds.apache.org/job/Lucene-Solr-Tests-5.x-Java7/2239/ > > > > No tests ran. > > > > Build Log: > > [...truncated 150 lines...] > > [javac] Compiling 146 source files to /usr/home/jenkins/jenkins- > slave/workspace/Lucene-Solr-Tests-5.x-Java7/lucene/build/test- > framework/classes/java > > [javac] /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests- > 5.x-Java7/lucene/test- > framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java:104: > error: <anonymous org.apache.lucene.mockfile.FilterFileSystem$1$1> is not > abstract and does not override abstract method remove() in Iterator > > [javac] return new Iterator<Path>() { > > [javac] ^ > > [javac] /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests- > 5.x-Java7/lucene/test- > framework/src/java/org/apache/lucene/mockfile/FilterFileSystem.java:126: > error: <anonymous org.apache.lucene.mockfile.FilterFileSystem$2$1> is not > abstract and does not override abstract method remove() in Iterator > > [javac] return new Iterator<FileStore>() { > > [javac] ^ > > [javac] /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests- > 5.x-Java7/lucene/test- > framework/src/java/org/apache/lucene/mockfile/FilterPath.java:230: error: > <anonymous org.apache.lucene.mockfile.FilterPath$1> is not abstract and > does not override abstract method remove() in Iterator > > [javac] return new Iterator<Path>() { > > [javac] ^ > > [javac] Note: Some input files use or override a deprecated API. > > [javac] Note: Recompile with -Xlint:deprecation for details. > > [javac] 3 errors > > > > BUILD FAILED > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/build.xml:525: The following error occurred while executing this line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/build.xml:473: The following error occurred while executing this line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/build.xml:61: The following error occurred while executing this line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/extra-targets.xml:39: The following error occurred while executing this > line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/lucene/build.xml:49: The following error occurred while executing this > line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/lucene/common-build.xml:765: The following error occurred while > executing this line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/lucene/common-build.xml:514: The following error occurred while > executing this line: > > /usr/home/jenkins/jenkins-slave/workspace/Lucene-Solr-Tests-5.x- > Java7/lucene/common-build.xml:1870: Compile failed; see the compiler error > output for details. > > > > Total time: 18 seconds > > Build step 'Invoke Ant' marked build as failure Archiving artifacts > > Sending artifact delta relative to Lucene-Solr-Tests-5.x-Java7 #2238 > > Archived 1 artifacts Archive block size is 32768 Received 0 blocks and > > 464 bytes Compression is 0.0% Took 60 ms Recording test results Email > > was triggered for: Failure Sending email for trigger: Failure > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] For > > additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] For additional > commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
