You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Gurkan Erdogdu <ge...@managecat.com> on 2015/09/16 17:47:59 UTC
Compilation Errors in JDK 1.8 under Mac OSX
Hello folks
I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X Yosemite 10.10.4 but when it compiles, I have some compilation errors. Some of them:
org.apache.openejb.cdi.WebappBeanManager
return new IteratorSet<>(
new MultipleIterator<>(
filter,
deploymentBeans.iterator(),
getParentBm().getComponents().iterator()));
ERROR : Cannot infer type arguments for
IteratorSet<>
org.apache.openejb.util.Index
public interface ListSet extends List, Set {
}
ERROR : Multiple markers at this line
- List is a raw type. References to generic type List<E> should be parameterized
- Duplicate default methods named spliterator with the parameters () and () are inherited from the types Set
and List
- Set is a raw type. References to generic type Set<E> should be parameterized
And also some couple of places.
Is anybody experience with such errors in JDK 8?
Regards.
Gurkan Erdogdu
Founder, ManageCat
p. +1 (909) - 366 – 9337
a. 340 S Lemon Ave #7996 Walnut, CA 91789
w. http://managecat.com <http://managecat.com/>
e gerdogdu@managecat.com <ma...@managecat.com>
<http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu>
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by agumbrecht <ag...@tomitribe.com>.
It's better to make sure your maven installation is using a 1.7 JDK and build
from the command line.
Run mvn --version and check the output.
Andy.
-----
--
Andy Gumbrecht
http://www.tomitribe.com
agumbrecht@tomitribe.com
https://twitter.com/AndyGeeDe
TomEE treibt Tomitribe ! | http://tomee.apache.org
--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Compilation-Errors-in-JDK-1-8-under-Mac-OSX-tp4676251p4676306.html
Sent from the TomEE Dev mailing list archive at Nabble.com.
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by Alex Gout <ag...@gmail.com>.
If you're having trouble managing your JDK's on Mac OS X, take a look at
jenv
On Mon, Sep 21, 2015 at 9:03 AM dsh <da...@gmail.com> wrote:
> On OSX Eclipse does use whatever JDK it finds on the system. Of course that
> can be configured accordingly in Eclipse.
>
> Cheers
> Daniel
>
> On Wed, Sep 16, 2015 at 6:13 PM, Alex Gout <ag...@gmail.com> wrote:
>
> > The eclipse is using an older compiler. Looking at the message, a
> compiler
> > older than 1.7.
> >
> > On Wed, Sep 16, 2015 at 9:56 AM Gurkan Erdogdu <ge...@managecat.com>
> > wrote:
> >
> > > No problem occurs in command line with mvn. Problem occurs in eclipse
> > >
> > > > On 16 Sep 2015, at 18:52, Romain Manni-Bucau <rm...@gmail.com>
> > > wrote:
> > > >
> > > > Hi Gurkan,
> > > >
> > > > to respect the specification TomEE has to be built with a jdk7. That
> > > said I
> > > > build it on mac with the following JDK without issues:
> > > >
> > > > $ java -version
> > > > java version "1.8.0_45"
> > > > Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> > > > Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
> > > >
> > > >
> > > >
> > > > Romain Manni-Bucau
> > > > @rmannibucau <https://twitter.com/rmannibucau> | Blog
> > > > <http://rmannibucau.wordpress.com> | Github <
> > > https://github.com/rmannibucau> |
> > > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > > <http://www.tomitribe.com>
> > > >
> > > > 2015-09-16 8:47 GMT-07:00 Gurkan Erdogdu <ge...@managecat.com>:
> > > >
> > > >> Hello folks
> > > >>
> > > >> I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X
> > > Yosemite
> > > >> 10.10.4 but when it compiles, I have some compilation errors. Some
> of
> > > them:
> > > >>
> > > >> org.apache.openejb.cdi.WebappBeanManager
> > > >> return new IteratorSet<>(
> > > >> new MultipleIterator<>(
> > > >> filter,
> > > >> deploymentBeans.iterator(),
> > > >> getParentBm().getComponents().iterator()));
> > > >> ERROR : Cannot infer type arguments for
> > > >> IteratorSet<>
> > > >>
> > > >> org.apache.openejb.util.Index
> > > >> public interface ListSet extends List, Set {
> > > >> }
> > > >>
> > > >> ERROR : Multiple markers at this line
> > > >> - List is a raw type. References to generic type List<E>
> should
> > > be
> > > >> parameterized
> > > >> - Duplicate default methods named spliterator with the
> > parameters
> > > >> () and () are inherited from the types Set
> > > >> and List
> > > >> - Set is a raw type. References to generic type Set<E> should
> > be
> > > >> parameterized
> > > >>
> > > >> And also some couple of places.
> > > >>
> > > >> Is anybody experience with such errors in JDK 8?
> > > >>
> > > >> Regards.
> > > >>
> > > >> Gurkan Erdogdu
> > > >> Founder, ManageCat
> > > >> p. +1 (909) - 366 – 9337
> > > >> a. 340 S Lemon Ave #7996 Walnut, CA 91789
> > > >> w. http://managecat.com <http://managecat.com/>
> > > >> e gerdogdu@managecat.com <ma...@managecat.com>
> > > >> <http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu
> >
> > > >>
> > >
> > >
> >
>
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by dsh <da...@gmail.com>.
On OSX Eclipse does use whatever JDK it finds on the system. Of course that
can be configured accordingly in Eclipse.
Cheers
Daniel
On Wed, Sep 16, 2015 at 6:13 PM, Alex Gout <ag...@gmail.com> wrote:
> The eclipse is using an older compiler. Looking at the message, a compiler
> older than 1.7.
>
> On Wed, Sep 16, 2015 at 9:56 AM Gurkan Erdogdu <ge...@managecat.com>
> wrote:
>
> > No problem occurs in command line with mvn. Problem occurs in eclipse
> >
> > > On 16 Sep 2015, at 18:52, Romain Manni-Bucau <rm...@gmail.com>
> > wrote:
> > >
> > > Hi Gurkan,
> > >
> > > to respect the specification TomEE has to be built with a jdk7. That
> > said I
> > > build it on mac with the following JDK without issues:
> > >
> > > $ java -version
> > > java version "1.8.0_45"
> > > Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> > > Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
> > >
> > >
> > >
> > > Romain Manni-Bucau
> > > @rmannibucau <https://twitter.com/rmannibucau> | Blog
> > > <http://rmannibucau.wordpress.com> | Github <
> > https://github.com/rmannibucau> |
> > > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > > <http://www.tomitribe.com>
> > >
> > > 2015-09-16 8:47 GMT-07:00 Gurkan Erdogdu <ge...@managecat.com>:
> > >
> > >> Hello folks
> > >>
> > >> I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X
> > Yosemite
> > >> 10.10.4 but when it compiles, I have some compilation errors. Some of
> > them:
> > >>
> > >> org.apache.openejb.cdi.WebappBeanManager
> > >> return new IteratorSet<>(
> > >> new MultipleIterator<>(
> > >> filter,
> > >> deploymentBeans.iterator(),
> > >> getParentBm().getComponents().iterator()));
> > >> ERROR : Cannot infer type arguments for
> > >> IteratorSet<>
> > >>
> > >> org.apache.openejb.util.Index
> > >> public interface ListSet extends List, Set {
> > >> }
> > >>
> > >> ERROR : Multiple markers at this line
> > >> - List is a raw type. References to generic type List<E> should
> > be
> > >> parameterized
> > >> - Duplicate default methods named spliterator with the
> parameters
> > >> () and () are inherited from the types Set
> > >> and List
> > >> - Set is a raw type. References to generic type Set<E> should
> be
> > >> parameterized
> > >>
> > >> And also some couple of places.
> > >>
> > >> Is anybody experience with such errors in JDK 8?
> > >>
> > >> Regards.
> > >>
> > >> Gurkan Erdogdu
> > >> Founder, ManageCat
> > >> p. +1 (909) - 366 – 9337
> > >> a. 340 S Lemon Ave #7996 Walnut, CA 91789
> > >> w. http://managecat.com <http://managecat.com/>
> > >> e gerdogdu@managecat.com <ma...@managecat.com>
> > >> <http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu>
> > >>
> >
> >
>
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by Alex Gout <ag...@gmail.com>.
The eclipse is using an older compiler. Looking at the message, a compiler
older than 1.7.
On Wed, Sep 16, 2015 at 9:56 AM Gurkan Erdogdu <ge...@managecat.com>
wrote:
> No problem occurs in command line with mvn. Problem occurs in eclipse
>
> > On 16 Sep 2015, at 18:52, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
> >
> > Hi Gurkan,
> >
> > to respect the specification TomEE has to be built with a jdk7. That
> said I
> > build it on mac with the following JDK without issues:
> >
> > $ java -version
> > java version "1.8.0_45"
> > Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> > Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
> >
> >
> >
> > Romain Manni-Bucau
> > @rmannibucau <https://twitter.com/rmannibucau> | Blog
> > <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> > <http://www.tomitribe.com>
> >
> > 2015-09-16 8:47 GMT-07:00 Gurkan Erdogdu <ge...@managecat.com>:
> >
> >> Hello folks
> >>
> >> I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X
> Yosemite
> >> 10.10.4 but when it compiles, I have some compilation errors. Some of
> them:
> >>
> >> org.apache.openejb.cdi.WebappBeanManager
> >> return new IteratorSet<>(
> >> new MultipleIterator<>(
> >> filter,
> >> deploymentBeans.iterator(),
> >> getParentBm().getComponents().iterator()));
> >> ERROR : Cannot infer type arguments for
> >> IteratorSet<>
> >>
> >> org.apache.openejb.util.Index
> >> public interface ListSet extends List, Set {
> >> }
> >>
> >> ERROR : Multiple markers at this line
> >> - List is a raw type. References to generic type List<E> should
> be
> >> parameterized
> >> - Duplicate default methods named spliterator with the parameters
> >> () and () are inherited from the types Set
> >> and List
> >> - Set is a raw type. References to generic type Set<E> should be
> >> parameterized
> >>
> >> And also some couple of places.
> >>
> >> Is anybody experience with such errors in JDK 8?
> >>
> >> Regards.
> >>
> >> Gurkan Erdogdu
> >> Founder, ManageCat
> >> p. +1 (909) - 366 – 9337
> >> a. 340 S Lemon Ave #7996 Walnut, CA 91789
> >> w. http://managecat.com <http://managecat.com/>
> >> e gerdogdu@managecat.com <ma...@managecat.com>
> >> <http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu>
> >>
>
>
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by Gurkan Erdogdu <ge...@managecat.com>.
No problem occurs in command line with mvn. Problem occurs in eclipse
> On 16 Sep 2015, at 18:52, Romain Manni-Bucau <rm...@gmail.com> wrote:
>
> Hi Gurkan,
>
> to respect the specification TomEE has to be built with a jdk7. That said I
> build it on mac with the following JDK without issues:
>
> $ java -version
> java version "1.8.0_45"
> Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
> Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
>
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> | Blog
> <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2015-09-16 8:47 GMT-07:00 Gurkan Erdogdu <ge...@managecat.com>:
>
>> Hello folks
>>
>> I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X Yosemite
>> 10.10.4 but when it compiles, I have some compilation errors. Some of them:
>>
>> org.apache.openejb.cdi.WebappBeanManager
>> return new IteratorSet<>(
>> new MultipleIterator<>(
>> filter,
>> deploymentBeans.iterator(),
>> getParentBm().getComponents().iterator()));
>> ERROR : Cannot infer type arguments for
>> IteratorSet<>
>>
>> org.apache.openejb.util.Index
>> public interface ListSet extends List, Set {
>> }
>>
>> ERROR : Multiple markers at this line
>> - List is a raw type. References to generic type List<E> should be
>> parameterized
>> - Duplicate default methods named spliterator with the parameters
>> () and () are inherited from the types Set
>> and List
>> - Set is a raw type. References to generic type Set<E> should be
>> parameterized
>>
>> And also some couple of places.
>>
>> Is anybody experience with such errors in JDK 8?
>>
>> Regards.
>>
>> Gurkan Erdogdu
>> Founder, ManageCat
>> p. +1 (909) - 366 – 9337
>> a. 340 S Lemon Ave #7996 Walnut, CA 91789
>> w. http://managecat.com <http://managecat.com/>
>> e gerdogdu@managecat.com <ma...@managecat.com>
>> <http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu>
>>
Re: Compilation Errors in JDK 1.8 under Mac OSX
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Gurkan,
to respect the specification TomEE has to be built with a jdk7. That said I
build it on mac with the following JDK without issues:
$ java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>
2015-09-16 8:47 GMT-07:00 Gurkan Erdogdu <ge...@managecat.com>:
> Hello folks
>
> I tried to switch JDK 1.8.0_60 in Eclipse Luna 4.4.1 in Mac OS X Yosemite
> 10.10.4 but when it compiles, I have some compilation errors. Some of them:
>
> org.apache.openejb.cdi.WebappBeanManager
> return new IteratorSet<>(
> new MultipleIterator<>(
> filter,
> deploymentBeans.iterator(),
> getParentBm().getComponents().iterator()));
> ERROR : Cannot infer type arguments for
> IteratorSet<>
>
> org.apache.openejb.util.Index
> public interface ListSet extends List, Set {
> }
>
> ERROR : Multiple markers at this line
> - List is a raw type. References to generic type List<E> should be
> parameterized
> - Duplicate default methods named spliterator with the parameters
> () and () are inherited from the types Set
> and List
> - Set is a raw type. References to generic type Set<E> should be
> parameterized
>
> And also some couple of places.
>
> Is anybody experience with such errors in JDK 8?
>
> Regards.
>
> Gurkan Erdogdu
> Founder, ManageCat
> p. +1 (909) - 366 – 9337
> a. 340 S Lemon Ave #7996 Walnut, CA 91789
> w. http://managecat.com <http://managecat.com/>
> e gerdogdu@managecat.com <ma...@managecat.com>
> <http://twitter.com/gerdogdu> <https://tr.linkedin.com/in/gerdogdu>
>