|
From: Peter A. <ans...@gm...> - 2012-03-15 23:50:21
|
Hi Bryan, Thanks, it now it works for me with both "-source 1.6 -target 1.6" and "-source 1.7 -target 1.7". The runtime (with matching JDK) that I have installed is: $ java -version java version "1.7.0_147-icedtea" OpenJDK Runtime Environment (IcedTea7 2.0) (7~b147-2.0-0ubuntu0.11.10.1) OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode) $ javac -version javac 1.7.0_147 I will get to testing bigdata out now. Thanks, Peter On 15 March 2012 22:44, Bryan Thompson <br...@sy...> wrote: > Peter, > > I've worked through all the compiler errors for Java 7. You can check out the code from the 1.1.x maintenance branch [1] and give it a try. Please let me know how it works and which compilers you try. > > Thanks, > Bryan > > [1] https://bigdata.svn.sourceforge.net/svnroot/bigdata/branches/BIGDATA_RELEASE_1_1_0 > >> -----Original Message----- >> From: Bryan Thompson >> Sent: Thursday, March 15, 2012 8:26 AM >> To: Bryan Thompson; Peter Ansell; >> big...@li... >> Subject: RE: [Bigdata-developers] Compile errors with bigdata >> 1.1.0 using openjdk-7 >> >> Peter, >> >> I replicated your results using Oracle Java 7u3 with the >> source and target set to 1.7. I filed a ticket for this [1]. >> Most of these are trivial fixes. Apparently Java 7 does not >> permit private fields in outer/inner classes to be >> referenced. We are having this problem when referencing the >> private field in the outer class from a static inner class >> and visa versa. >> >> I'll take a look at the remaining compiler error now. >> >> Bryan >> >> [1] https://sourceforge.net/apps/trac/bigdata/ticket/517#comment:1 >> >> > -----Original Message----- >> > From: Bryan Thompson [mailto:br...@sy...] >> > Sent: Thursday, March 15, 2012 5:01 AM >> > To: Peter Ansell; big...@li... >> > Subject: Re: [Bigdata-developers] Compile errors with bigdata 1.1.0 >> > using openjdk-7 >> > >> > Peter, >> > >> > Do you get the same results with Java 7 and openjdk? The >> > build.propeties file specifies: >> > >> > > [echo] source="1.6" >> > > [echo] target="1.6" >> > >> > You might need to change that to compile under Java 7. >> > >> > We have not tried compilation or execution under Java 7. The main >> > reason for us to go to Java 7 is the async IO support. >> > However, the first Java 7 release was buggy and I am not >> sure that it >> > will be that easy to support async IO and Java 6 in the same >> > distribution. >> > >> > Thanks, >> > Bryan >> > >> > > -----Original Message----- >> > > From: Peter Ansell [mailto:ans...@gm...] >> > > Sent: Thursday, March 15, 2012 12:53 AM >> > > To: big...@li... >> > > Subject: [Bigdata-developers] Compile errors with bigdata >> > 1.1.0 using >> > > openjdk-7 >> > > >> > > Hi, >> > > >> > > I am trying to compile both tags/BIGDATA_RELEASE_1_1_0 and >> > > branches/BIGDATA_RELEASE_1_1_0 using openjdk-7 on Ubuntu >> > 11.10 and I >> > > am getting similar compile errors from both. One of them >> relates to >> > > generics while the others relate to private field access. >> Is either >> > > Java-7 or OpenJDK in general supported by bigdata? I >> > originally tried >> > > compiling with the tag but the errors were very similar with the >> > > branch so the log below is based on the branch. I fear that >> > if I try >> > > to run bigdata directly using the binaries that these >> > compile errors >> > > may generate runtime errors so I am not going to try that >> just yet. >> > > >> > > Thanks, >> > > >> > > Peter >> > > >> > > $ svn info >> > > Path: . >> > > URL: >> > > https://bigdata.svn.sourceforge.net/svnroot/bigdata/branches/B >> > > IGDATA_RELEASE_1_1_0 >> > > Repository Root: >> https://bigdata.svn.sourceforge.net/svnroot/bigdata >> > > Repository UUID: 8f7bc0f5-282e-0410-95e3-8d296e9bb460 >> > > Revision: 6126 >> > > Node Kind: directory >> > > Schedule: normal >> > > Last Changed Author: thompsonbry >> > > Last Changed Rev: 6126 >> > > Last Changed Date: 2012-03-15 10:38:44 +1000 (Thu, 15 Mar 2012) >> > > >> > > $ java -version >> > > java version "1.7.0_147-icedtea" >> > > OpenJDK Runtime Environment (IcedTea7 2.0) >> > > (7~b147-2.0-0ubuntu0.11.10.1) OpenJDK 64-Bit Server VM (build >> > > 21.0-b17, mixed mode) >> > > >> > > >> > > $ ant >> > > Buildfile: /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/build.xml >> > > >> > > clean: >> > > >> > > bundle: >> > > [copy] Copying 32 files to >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/ant-build/lib >> > > [copy] Copying 49 files to >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/ant-build/lib >> > > >> > > prepare: >> > > [echo] version=bigdata-1.1.0 >> > > [echo] svn.checkout=true >> > > [mkdir] Created dir: >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/ant-build/classes >> > > [mkdir] Created dir: >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/ant-build/docs >> > > >> > > buildinfo: >> > > [echo] >> > > [echo] package com.bigdata; >> > > [echo] public class BuildInfo { >> > > [echo] public static final String buildVersion="1.1.0"; >> > > [echo] public static final String buildVersionOSGI="1.0"; >> > > [echo] public static final String svnRevision="6126"; >> > > [echo] public static final String >> > > svnURL="https://bigdata.svn.sourceforge.net/svnroot/bigdata/br >> > > anches/BIGDATA_RELEASE_1_1_0"; >> > > [echo] public static final String >> > buildTimestamp="2012/03/15 >> > > 14:37:20 EST"; >> > > [echo] public static final String buildUser="peter"; >> > > [echo] public static final String >> > > buildHost="${env.COMPUTERNAME}"; >> > > [echo] public static final String osArch="amd64"; >> > > [echo] public static final String osName="Linux"; >> > > [echo] public static final String >> > osVersion="3.0.0-16-generic"; >> > > [echo] } >> > > >> > > compile: >> > > [echo] javac >> > > [echo] destdir="ant-build" >> > > [echo] fork="yes" >> > > [echo] memorymaximumsize="1g" >> > > [echo] debug="yes" >> > > [echo] debuglevel="lines,vars,source" >> > > [echo] verbose="off" >> > > [echo] encoding="Cp1252" >> > > [echo] source="1.6" >> > > [echo] target="1.6" >> > > [javac] Compiling 2162 source files to >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/ant-build/classes >> > > [javac] javac 1.7.0_147 >> > > [javac] warning: [options] bootstrap class path not set in >> > > conjunction with -source 1.6 >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/counters/striped/StripedCounters.java:140: >> > > error: locks has private access in StripedCounters >> > > [javac] parent.locks[threadHash].unlock(); >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/counters/striped/StripedCounters.java:191: >> > > error: parent has private access in StripedCounters >> > > [javac] t.parent = (T) this; >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/counters/striped/StripedCounters.java:192: >> > > error: batchSize has private access in StripedCounters >> > > [javac] t.batchSize = t.n = batchSize; >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/counters/striped/StripedCounters.java:192: >> > > error: n has private access in StripedCounters >> > > [javac] t.batchSize = t.n = batchSize; >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/striterator/ChunkedFilter.java:101: >> > > error: name clash: filter(I#1) in ChunkedFilter overrides >> a method >> > > whose erasure is the same as another method, yet neither >> > overrides the >> > > other >> > > [javac] public IChunkedOrderedIterator<F> >> > > filter(final I src) { >> > > [javac] ^ >> > > [javac] first method: filter(Iterator) in ChunkedFilter >> > > [javac] second method: filter(I#2) in IFilter >> > > [javac] where I#1,E#1,F#1,I#2,E#2,F#2 are type-variables: >> > > [javac] I#1 extends IChunkedIterator<E#1> >> declared in class >> > > ChunkedFilter >> > > [javac] E#1 extends Object declared in class ChunkedFilter >> > > [javac] F#1 extends Object declared in class ChunkedFilter >> > > [javac] I#2 extends Iterator<E#2> declared in >> > > interface IFilter >> > > [javac] E#2 extends Object declared in interface IFilter >> > > [javac] F#2 extends Object declared in interface IFilter >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > m/bigdata/striterator/ChunkedFilter.java:111: >> > > error: name clash: filter(Iterator) in ChunkedFilter and >> > > filter(I) in IFilter have the same erasure, yet neither >> > overrides the >> > > other >> > > [javac] public IChunkedOrderedIterator<F> >> > > filter(final Iterator src) { >> > > [javac] ^ >> > > [javac] where F#1,I,E,F#2 are type-variables: >> > > [javac] F#1 extends Object declared in class ChunkedFilter >> > > [javac] I extends Iterator<E> declared in >> interface IFilter >> > > [javac] E extends Object declared in interface IFilter >> > > [javac] F#2 extends Object declared in interface IFilter >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > >> m/bigdata/cache/SynchronizedHardReferenceQueueWithTimeout.java:205: >> > > error: ts has private access in ValueAge >> > > [javac] final long maxAge = now - peek().ts; >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > >> m/bigdata/cache/SynchronizedHardReferenceQueueWithTimeout.java:212: >> > > error: ts has private access in ValueAge >> > > [javac] age = now - x.ts; >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata/src/java/co >> > > >> m/bigdata/cache/SynchronizedHardReferenceQueueWithTimeout.java:221: >> > > error: ref has private access in ValueAge >> > > [javac] log.trace("Evicting: " + >> > > x.ref + " : timeout=" >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata-jini/src/ja >> > va/com/bigdata/service/jini/master/TaskMaster.> java:837: >> > > error: beginMillis has private access in JobState >> > > [javac] jobState.beginMillis = >> > > System.currentTimeMillis(); >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata-jini/src/ja >> > va/com/bigdata/service/jini/master/TaskMaster.> java:1093: >> > > error: endMillis has private access in JobState >> > > [javac] jobState.endMillis = >> System.currentTimeMillis(); >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata-jini/src/ja >> > va/com/bigdata/service/jini/master/TaskMaster.> java:1138: >> > > error: endMillis has private access in JobState >> > > [javac] jobState.endMillis = >> > > System.currentTimeMillis(); >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata-jini/src/ja >> > va/com/bigdata/service/jini/master/TaskMaster.> java:1289: >> > > error: deleteJob has private access in JobState >> > > [javac] if (jobState.deleteJob >> > > [javac] ^ >> > > [javac] >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/bigdata-jini/src/ja >> > va/com/bigdata/service/jini/master/TaskMaster.> java:1373: >> > > error: resumedJob has private access in JobState >> > > [javac] jobState.resumedJob = true; >> > > [javac] ^ >> > > [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] 14 errors >> > > [javac] 1 warning >> > > >> > > BUILD FAILED >> > > /home/peter/svnrepos/BIGDATA_RELEASE_1_1_0/build.xml:223: >> > > Compile failed; see the compiler error output for details. >> > > >> > > Total time: 20 seconds >> > > >> > > -------------------------------------------------------------- >> > > ---------------- >> > > This SF email is sponsosred by: >> > > Try Windows Azure free for 90 days Click Here >> > > http://p.sf.net/sfu/sfd2d-msazure >> > > _______________________________________________ >> > > Bigdata-developers mailing list >> > > Big...@li... >> > > https://lists.sourceforge.net/lists/listinfo/bigdata-developers >> > > >> > -------------------------------------------------------------- >> > ---------------- >> > This SF email is sponsosred by: >> > Try Windows Azure free for 90 days Click Here >> > http://p.sf.net/sfu/sfd2d-msazure >> > _______________________________________________ >> > Bigdata-developers mailing list >> > Big...@li... >> > https://lists.sourceforge.net/lists/listinfo/bigdata-developers >> > |