Compilation succeeds for me on Linux using my built-from-source OpenJDK 6 b25 (still not sure what the Oracle-equivalent version is; "javac -version" reports "javac 1.6.0-internal"). This is consistent with the ASF Jenkins Maven build success today using OpenJDK 1.6.0_32. - Steve
-----Original Message----- From: Steven A Rowe [mailto:[email protected]] Sent: Wednesday, August 22, 2012 4:25 PM To: [email protected] Subject: Maven and IntelliJ (but not Ant) compilation fails on branch_4x and trunk using Java6; Java7 works for all On Win7, I'm getting compilation failures on branch_4x and trunk, under Maven (2.2.1 and 3.0.4) and IntelliJ (11.1.3). Under Ant (1.8.2), compilation succeeds. I've tried Oracle JDK 1.6.0_21 and 1.6.0_34, both 64-bit, and both behave the same (success under Ant, failure under Maven and IntelliJ). Maven and IntelliJ compilation succeeds using Java7 (Oracle 1.7.0_01 64-bit). AFAICT, the failures seem related to Mike McCandless's LUCENE-3892 (BlockPostingsFormat) commit yesterday; o.a.l.util.packed.BulkOperation looks like the common denominator. This class is a huge file (31k lines) generated by gen_BulkOperation.py. On Linux (Debian Squeeze x64_86) I get the same compilation failures under Maven 2.2.1 using either Oracle JDK 1.6.0_24 or OpenJDK 1.6.0_18. However, the ASF Jenkins Maven trunk build succeeded today at r1376102 (Mike's commit was r1375495) - this is FreeBSD, with Maven 2.2.1 and OpenJDK 1.6.0_32. I'm building OpenJDK 6 b25 on Linux from the source bundle now (not sure what the Oracle-compatible version number is), and once it's finished I'll give it a try and report back. I tried increasing the compiler's max memory under both systems, to 1GB, but compilation still failed. I was able to get IntelliJ compilation to succeed, using the "Javac in-process" compiler option, as well as using the Eclipse compiler option. I wasn't able to get compilation to succeed under Maven, though; upgrading maven-compiler-plugin to the latest version (v2.5.1) didn't help. I tried to get Ant to fail by adding fork="yes" to the <javac> invocation in lucene/common-build.xml, but it still succeeds. Here are the errors from the Maven 2.2.1 compilation output under trunk lucene/core/ using Oracle JDK 1.6.0_34: -------- \svn\lucene\dev\trunk\lucene\core\src\java\org\apache\lucene\util\packed\PackedWriter.java:[45,46] cannot find symbol symbol : method blockCount() location: class org.apache.lucene.util.packed.BulkOperation \svn\lucene\dev\trunk\lucene\core\src\java\org\apache\lucene\util\packed\PackedWriter.java:[46,46] cannot find symbol symbol : method valueCount() location: class org.apache.lucene.util.packed.BulkOperation \svn\lucene\dev\trunk\lucene\core\src\java\org\apache\lucene\util\packed\PackedWriter.java:[84,11] cannot find symbol symbol : method encode(long[],int,long[],int,int) location: class org.apache.lucene.util.packed.BulkOperation -------- Here's the first of several compilation failures on branch_4x under IntelliJ using Oracle JDK 1.6.0_34: -------- C:\svn\lucene\dev\branches\branch_4x\lucene\core\src\java\org\apache\lucene\util\packed\PackedReaderIterator.java Error:Error:line (41)cannot find symbol method blockCount() Error:Error:line (42)cannot find symbol method valueCount() Error:Error:line (43)cannot find symbol method valueCount() Error:Error:line (44)cannot find symbol method blockCount() Error:Error:line (73)cannot find symbol method decode(long[],int,long[],int,int) -------- Steve --------------------------------------------------------------------- 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]
