Hi Greg,
I have included: errors ; solution & my build environment later in this email.
Errors are piece of cake but they imply that committers are using sun-jdk
instead of open-jdk.
I must use the same build environment that commiters to report a bug, right
saying: can't compile.
It will include a patch fixing it. :-)
Whoever is in charge:
-build environment must be specified in the Developers Wiki
-committers/developers have to use specified build environment.
<ps 1 - errors>
<ps 2 - diff>
<ps 3 - my build environment>
-Pawel
ps 1:
[INFO] -------------------------------------------------------------
[ERROR]
/opt/matterhorn/trunk/modules/matterhorn-common/src/main/java/org/opencastproject/util/data/Collections.java:[447,47]
incompatible types
found : java.util.List<java.lang.Object>
required: java.util.List<B>
[ERROR]
/opt/matterhorn/trunk/modules/matterhorn-common/src/main/java/org/opencastproject/util/data/functions/Functions.java:[222,38]
incompatible types
found : java.util.List<java.lang.Object>
required: java.util.List<B>
[INFO] 2 errors
ps 2:
---
modules/matterhorn-common/src/main/java/org/opencastproject/util/data/Collections.java
(revision 12089)
+++
modules/matterhorn-common/src/main/java/org/opencastproject/util/data/Collections.java
(working copy)
- return mlist(as).bind(f).value();
+ return (List<B>)mlist(as).bind(f).value();
---
modules/matterhorn-common/src/main/java/org/opencastproject/util/data/functions/Functions.java
(revision 12089)
+++
modules/matterhorn-common/src/main/java/org/opencastproject/util/data/functions/Functions.java
(working copy)
- return Monadics.mlist(as).bind(f).value();
+ return (List<B>)Monadics.mlist(as).bind(f).value();
---
modules/matterhorn-common/src/test/java/org/opencastproject/util/data/MonadicsTest.java
(revision 12089)
+++
modules/matterhorn-common/src/test/java/org/opencastproject/util/data/MonadicsTest.java
(working copy)
- List<Integer> mapped = Monadics.mlist(new Integer[]{1, 2, 3}).flatMap(new
Function<Integer, Collection<Integer>>() {
+ List<Object> mapped = Monadics.mlist(new Integer[]{1, 2, 3}).flatMap(new
Function<Integer, Collection<Integer>>() {
public void testFlatten() {
- List<Integer> mapped = mlist(list(list(1, 2), list(3,
4))).flatMap(Functions.<List<Integer>>identity()).value();
+ List<Object> mapped = mlist(list(list(1, 2), list(3,
4))).flatMap(Functions.<List<Integer>>identity()).value();
Ps 3
My JDK is:
<<<<<<<<<<<<<<<<<<<<<<<<
pawelf@pawelf-desktop:/opt/matterhorn/trunk# javac -version
javac 1.6.0_20
pawelf@pawelf-desktop:/opt/matterhorn/trunk# cat /proc/version
Linux version 2.6.32-31-generic-pae (buildd@rothera) (gcc version 4.4.3 (Ubuntu
4.4.3-4ubuntu5) ) #61-Ubuntu SMP Fri Apr 8 20:00:13 UTC 2011
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
--- On Wed, 4/18/12, Greg Logan <[email protected]> wrote:
> From: Greg Logan <[email protected]>
> Subject: Re: [Opencast Matterhorn] sun-java6-jdk versus java-6-openjdk
> To: [email protected]
> Date: Wednesday, April 18, 2012, 5:31 AM
> On 4/17/2012 6:51 AM, Pawel Fic
> wrote:
> > Hi, I want to learn more about developer environment.
> >
> > I tried compiling trunk (revision 12089) with
> java-6-openjdk fails,
> > and works with: sun-java6-jdk.
>
> What does this error look like? I work the
> java-6-openjdk on my Ubuntu
> 11.10 box and everything compiles correctly, however there
> are rare
> versions of java-6-openjdk, most notably on Ubuntu 10.04
> (Java 1.6_20)
> that fail to compile matterhorn-common. I've only seen
> two people,
> myself included in that, who can reproduce the bug.
>
> G
>
> > Where there any problem with java-6-openjdk?
> >
> > Was the Matterhorn moved to java-6-openjdk?
> >
> > Shouldn't there be a requirement to use java-6-openjdk
> in Developer's Wiki?
> > /tools section? /
> >
> > How about adding one, or adding a statement that
> sun-java6-jdk is needed...
> >
> >
> > [Finding out that java-6-openjdk is used, I switched
> from sun's jdk to openjdk, and now it look like I'll have to
> switch back :-) ]
> >
> > -Pawel
> > _______________________________________________
> > Matterhorn mailing list
> > [email protected]
> > http://lists.opencastproject.org/mailman/listinfo/matterhorn
> >
> >
> > To unsubscribe please email
> > [email protected]
> > _______________________________________________
> >
>
> _______________________________________________
> Matterhorn mailing list
> [email protected]
> http://lists.opencastproject.org/mailman/listinfo/matterhorn
>
>
> To unsubscribe please email
> [email protected]
> _______________________________________________
>
_______________________________________________
Matterhorn mailing list
[email protected]
http://lists.opencastproject.org/mailman/listinfo/matterhorn
To unsubscribe please email
[email protected]
_______________________________________________