harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Volosyuk" <ivan.volos...@gmail.com>
Subject Re: [classlib][concurrent] Implementation of the CopyOnWriteArrayList class.
Date Thu, 26 Oct 2006 14:44:30 GMT
I have the same problems when building on J2RE-1.4.2.
When running ant on java5 build works fine.
It looks like the build relies on system (jre's) concurrent package,
not the one build as a part of harmony.
--
Ivan

On 10/16/06, Stepan Mishura <stepan.mishura@gmail.com> wrote:
> On 10/13/06, Oleg Khaschansky wrote:
> > Could you, please, send the compiler output for these errors?
>
> The output of eclipse compiler is quite big (over 1M). I've just extracted
> some error messages:
>
>     [javac] 292. ERROR in
> C:\Apache\Harmony\ClassLib\modules\concurrent\src\main\java\java\util\concurrent\CopyOnWriteArrayList.java
>     [javac]  (at line 32)
>     [javac]  import java.util.concurrent.locks.ReentrantLock;
>     [javac]         ^^^^^^^^^^^^^^^^^^^^^^^^^^
>     [javac] The import java.util.concurrent.locks cannot be resolved
>     [javac] ----------
>     [javac] 293. ERROR in
> C:\Apache\Harmony\ClassLib\modules\concurrent\src\main\java\java\util\concurrent\CopyOnWriteArrayList.java
>     [javac]  (at line 43)
>     [javac]  private final transient ReentrantLock lock = new
> ReentrantLock();
>     [javac]                          ^^^^^^^^^^^^^
>     [javac] ReentrantLock cannot be resolved to a type
>     [javac] ----------
>     [javac] 294. ERROR in
> C:\Apache\Harmony\ClassLib\modules\concurrent\src\main\java\java\util\concurrent\CopyOnWriteArrayList.java
>     [javac]  (at line 43)
>     [javac]  private final transient ReentrantLock lock = new
> ReentrantLock();
>     [javac]                                                   ^^^^^^^^^^^^^
>     [javac] ReentrantLock cannot be resolved to a type
>     [javac] ----------
>
> Thanks,
> Stepan.
>
>
>
> > On 10/13/06, Stepan Mishura wrote:
> > > BTW, I stumbled over this class when I tried to build Classlib with
> > Harmony
> > > snapshot - it doesn't compile.
> > >
> > > I did the following:
> > > 1) set JAVA_HOME=C:\Apache\Harmony\snapshot\harmony-hdk-r450941\jdk\jre
> > > 2) ant -Dhy.javac.compiler=org.eclipse.jdt.core.JDTCompilerAdapter
> > >
> > > The build fails with compile errors. And if I revert Tim's commit back
> > > everything goes fine:
> > > $ svn up -r462578
> > >
> > modules/concurrent/src/main/java/java/util/concurrent/CopyOnWriteArrayList.java
> > > U
> > >
> > modules\concurrent\src\main\java\java\util\concurrent\CopyOnWriteArrayList.java
> > > Updated to revision 462578.
> > >
> > > Did anyone try this?
> > >
> > > Thanks,
> > > Stepan.
> > >
> > >
> > > On 10/10/06, Oleg Khaschansky wrote:
> > > >
> > > > I uploaded a patch which implements CopyOnWriteArrayList class.
> > > > Committers, please, take a look at [1]. I also ensured that
> > > > CopyOnWriteArrayListTest passes with this implementation.
> > > >
> > > > [1] http://issues.apache.org/jira/browse/HARMONY-1805
> > > >
> >
> >
> --
> Stepan Mishura
> Intel Middleware Products Division


-- 
Ivan
Intel Enterprise Solutions Software Division

Mime
View raw message