Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » 3.1 M2 and enums...
3.1 M2 and enums... [message #182172] Tue, 12 October 2004 17:13 Go to next message
Eclipse UserFriend
Originally posted by: bretbb.yahoo.com

I've having a problem with 3.1 M2 and enums. The new and noteworthy
section says it will support code like:

enum Color { RED, GREEN, BLUE }

class Printer {
printColors(List<Color> pallet) ...

The problem is that I get an error indicating that "Color" can't be resoved
to a type. I tried a very simple statement:

enum Color { RED, GREEN, BLUE }
List<Color> colorList = new LinkedList<Color>();

Any ideas on the problem? I can compile the code fine with javac. Is there a
way to fire javac externally...would this help? Thanks in advance!
Re: 3.1 M2 and enums... [message #182180 is a reply to message #182172] Tue, 12 October 2004 17:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomannNOSPAM.ca.ibm.com

enum are not supported yet.
--
Olivier
Re: 3.1 M2 and enums... [message #182188 is a reply to message #182180] Tue, 12 October 2004 17:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bretbb.yahoo.com

I guess the new and noteworthy session is incorrect. A shame since I love
eclipse but will have to find another solution... Any ideas or workarounds
would be appreciated.

"Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
news:ckhhh1$2nb$1@eclipse.org...
> enum are not supported yet.
> --
> Olivier
Re: 3.1 M2 and enums... [message #182196 is a reply to message #182188] Tue, 12 October 2004 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Bret Butcher wrote:
> I guess the new and noteworthy session is incorrect. A shame since I love
> eclipse but will have to find another solution... Any ideas or workarounds
> would be appreciated.
>
> "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> news:ckhhh1$2nb$1@eclipse.org...
>
>>enum are not supported yet.
>>--
>>Olivier
>
>
>
Actually, it's just a matter of the text on the new and noteworthy being
misleading.

"The new J2SE 5.0 keywords enum and @interface are now highlighted. The
brackets of type parameter lists are auto-completed and matching
brackets are highlighted."

This doesn't mean that Eclipse supports enumerations from a programmatic
perspective, it just means the UI will render them as keywords :/.

R.J.
Re: 3.1 M2 and enums... [message #182233 is a reply to message #182188] Tue, 12 October 2004 23:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ilias.lazaridis.com

On Tue, 12 Oct 2004 14:28:02 -0700, Bret Butcher <bretbb@yahoo.com> wrote:
>
> "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> news:ckhhh1$2nb$1@eclipse.org...
>> enum are not supported yet.
>> --
>> Olivier
>I guess the new and noteworthy session is incorrect. A shame since I love
> eclipse but will have to find another solution...

I understand you fully [I am just preparing to emigrate to netbeans.org]

> Any ideas or workarounds would be appreciated.

looks that only time helps:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=36938#c92

..

--
http://lazaridis.com
Re: 3.1 M2 and enums... [message #182344 is a reply to message #182188] Wed, 13 October 2004 06:17 Go to previous messageGo to next message
Eclipse UserFriend
I'm using enums and annotations in one of my projects, with an ANT build.


Bret Butcher wrote:
> I guess the new and noteworthy session is incorrect. A shame since I love
> eclipse but will have to find another solution... Any ideas or workarounds
> would be appreciated.
>
> "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> news:ckhhh1$2nb$1@eclipse.org...
>
>>enum are not supported yet.
>>--
>>Olivier
>
>
>
Re: 3.1 M2 and enums... [message #182367 is a reply to message #182188] Wed, 13 October 2004 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bretbb.yahoo.com

Thanks everyone!

"Bret Butcher" <bretbb@yahoo.com> wrote in message
news:ckhhv5$3jk$1@eclipse.org...
> I guess the new and noteworthy session is incorrect. A shame since I love
> eclipse but will have to find another solution... Any ideas or workarounds
> would be appreciated.
>
> "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> news:ckhhh1$2nb$1@eclipse.org...
> > enum are not supported yet.
> > --
> > Olivier
>
>
Re: 3.1 M2 and enums... [message #182473 is a reply to message #182367] Thu, 14 October 2004 06:12 Go to previous messageGo to next message
Eclipse UserFriend
fyi - we are currently working on implementing compiler support for enums.

"Bret Butcher" <bretbb@yahoo.com> wrote in message
news:ckjgj1$hs0$1@eclipse.org...
> Thanks everyone!
>
> "Bret Butcher" <bretbb@yahoo.com> wrote in message
> news:ckhhv5$3jk$1@eclipse.org...
> > I guess the new and noteworthy session is incorrect. A shame since I
love
> > eclipse but will have to find another solution... Any ideas or
workarounds
> > would be appreciated.
> >
> > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> > news:ckhhh1$2nb$1@eclipse.org...
> > > enum are not supported yet.
> > > --
> > > Olivier
> >
> >
>
>
Re: 3.1 M2 and enums... [message #182488 is a reply to message #182473] Thu, 14 October 2004 09:17 Go to previous messageGo to next message
Eclipse UserFriend
"Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
news:cklj3d$3dm$1@eclipse.org...
> fyi - we are currently working on implementing compiler support for enums.

Hooray!!! :-) Thank you.


>
> "Bret Butcher" <bretbb@yahoo.com> wrote in message
> news:ckjgj1$hs0$1@eclipse.org...
> > Thanks everyone!
> >
> > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > news:ckhhv5$3jk$1@eclipse.org...
> > > I guess the new and noteworthy session is incorrect. A shame since I
> love
> > > eclipse but will have to find another solution... Any ideas or
> workarounds
> > > would be appreciated.
> > >
> > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in message
> > > news:ckhhh1$2nb$1@eclipse.org...
> > > > enum are not supported yet.
> > > > --
> > > > Olivier
> > >
> > >
> >
> >
>
>
Re: 3.1 M2 and enums... [message #182678 is a reply to message #182488] Fri, 15 October 2004 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bretbb.yahoo.com

Amen, I can do without some of the 1.5 features but enums are a must!

"Steven Buroff" <sburoff@optonline.net> wrote in message
news:ckltv0$ofs$1@eclipse.org...
>
> "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> news:cklj3d$3dm$1@eclipse.org...
> > fyi - we are currently working on implementing compiler support for
enums.
>
> Hooray!!! :-) Thank you.
>
>
> >
> > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > news:ckjgj1$hs0$1@eclipse.org...
> > > Thanks everyone!
> > >
> > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > > news:ckhhv5$3jk$1@eclipse.org...
> > > > I guess the new and noteworthy session is incorrect. A shame since I
> > love
> > > > eclipse but will have to find another solution... Any ideas or
> > workarounds
> > > > would be appreciated.
> > > >
> > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in
message
> > > > news:ckhhh1$2nb$1@eclipse.org...
> > > > > enum are not supported yet.
> > > > > --
> > > > > Olivier
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: 3.1 M2 and enums... [message #182833 is a reply to message #182678] Mon, 18 October 2004 05:10 Go to previous messageGo to next message
Eclipse UserFriend
I got some basic support for enums working. Still missing enum constant with
arguments and bodies, but this should occur quickly.
Plus all subtle error situations to diagnose...

"Bret Butcher" <bretbb@yahoo.com> wrote in message
news:ckommb$mar$1@eclipse.org...
> Amen, I can do without some of the 1.5 features but enums are a must!
>
> "Steven Buroff" <sburoff@optonline.net> wrote in message
> news:ckltv0$ofs$1@eclipse.org...
> >
> > "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> > news:cklj3d$3dm$1@eclipse.org...
> > > fyi - we are currently working on implementing compiler support for
> enums.
> >
> > Hooray!!! :-) Thank you.
> >
> >
> > >
> > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > > news:ckjgj1$hs0$1@eclipse.org...
> > > > Thanks everyone!
> > > >
> > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > > > news:ckhhv5$3jk$1@eclipse.org...
> > > > > I guess the new and noteworthy session is incorrect. A shame since
I
> > > love
> > > > > eclipse but will have to find another solution... Any ideas or
> > > workarounds
> > > > > would be appreciated.
> > > > >
> > > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in
> message
> > > > > news:ckhhh1$2nb$1@eclipse.org...
> > > > > > enum are not supported yet.
> > > > > > --
> > > > > > Olivier
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: 3.1 M2 and enums... [message #183067 is a reply to message #182833] Wed, 20 October 2004 06:12 Go to previous messageGo to next message
Eclipse UserFriend
Enum constants with arguments are now operational.

"Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
news:cl00vj$393$1@eclipse.org...
> I got some basic support for enums working. Still missing enum constant
with
> arguments and bodies, but this should occur quickly.
> Plus all subtle error situations to diagnose...
>
> "Bret Butcher" <bretbb@yahoo.com> wrote in message
> news:ckommb$mar$1@eclipse.org...
> > Amen, I can do without some of the 1.5 features but enums are a must!
> >
> > "Steven Buroff" <sburoff@optonline.net> wrote in message
> > news:ckltv0$ofs$1@eclipse.org...
> > >
> > > "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> > > news:cklj3d$3dm$1@eclipse.org...
> > > > fyi - we are currently working on implementing compiler support for
> > enums.
> > >
> > > Hooray!!! :-) Thank you.
> > >
> > >
> > > >
> > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > > > news:ckjgj1$hs0$1@eclipse.org...
> > > > > Thanks everyone!
> > > > >
> > > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> > > > > news:ckhhv5$3jk$1@eclipse.org...
> > > > > > I guess the new and noteworthy session is incorrect. A shame
since
> I
> > > > love
> > > > > > eclipse but will have to find another solution... Any ideas or
> > > > workarounds
> > > > > > would be appreciated.
> > > > > >
> > > > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in
> > message
> > > > > > news:ckhhh1$2nb$1@eclipse.org...
> > > > > > > enum are not supported yet.
> > > > > > > --
> > > > > > > Olivier
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Re: 3.1 M2 and enums... [message #183128 is a reply to message #183067] Wed, 20 October 2004 15:24 Go to previous messageGo to next message
Eclipse UserFriend
Which build is it? N20041019 ? Because I20041019 seems to be buggy.

Am Wed, 20 Oct 2004 12:12:55 +0200 hat Philippe Mulet
<philippe_mulet@fr.ibm.com> geschrieben:

> Enum constants with arguments are now operational.
>
> "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> news:cl00vj$393$1@eclipse.org...
>> I got some basic support for enums working. Still missing enum constant
> with
>> arguments and bodies, but this should occur quickly.
>> Plus all subtle error situations to diagnose...
>>
>> "Bret Butcher" <bretbb@yahoo.com> wrote in message
>> news:ckommb$mar$1@eclipse.org...
>> > Amen, I can do without some of the 1.5 features but enums are a must!
>> >
>> > "Steven Buroff" <sburoff@optonline.net> wrote in message
>> > news:ckltv0$ofs$1@eclipse.org...
>> > >
>> > > "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
>> > > news:cklj3d$3dm$1@eclipse.org...
>> > > > fyi - we are currently working on implementing compiler support
>> for
>> > enums.
>> > >
>> > > Hooray!!! :-) Thank you.
>> > >
>> > >
>> > > >
>> > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
>> > > > news:ckjgj1$hs0$1@eclipse.org...
>> > > > > Thanks everyone!
>> > > > >
>> > > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
>> > > > > news:ckhhv5$3jk$1@eclipse.org...
>> > > > > > I guess the new and noteworthy session is incorrect. A shame
> since
>> I
>> > > > love
>> > > > > > eclipse but will have to find another solution... Any ideas or
>> > > > workarounds
>> > > > > > would be appreciated.
>> > > > > >
>> > > > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in
>> > message
>> > > > > > news:ckhhh1$2nb$1@eclipse.org...
>> > > > > > > enum are not supported yet.
>> > > > > > > --
>> > > > > > > Olivier
>> > > > > >
>> > > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> >
>> >
>>
>>
>
>
Re: 3.1 M2 and enums... [message #183289 is a reply to message #183128] Fri, 22 October 2004 06:16 Go to previous messageGo to next message
Eclipse UserFriend
As do the nightly builds up to and including N20041021. I guess we just have
to wait.

What a mess this thing would be without unit tests! (As would my own
projects). JUnit gets my nod for most all-time valuable software per line of
code.

Waiting and watching those JUnit reports for an acceptable build! ;=)

"Andrei Loskutov" <loskutov@gmx.de> wrote in message
news:opsf6n6dbh6144ym@andy...
> Which build is it? N20041019 ? Because I20041019 seems to be buggy.
>
> Am Wed, 20 Oct 2004 12:12:55 +0200 hat Philippe Mulet
> <philippe_mulet@fr.ibm.com> geschrieben:
>
>> Enum constants with arguments are now operational.
>>
>> "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
>> news:cl00vj$393$1@eclipse.org...
>>> I got some basic support for enums working. Still missing enum constant
>> with
>>> arguments and bodies, but this should occur quickly.
>>> Plus all subtle error situations to diagnose...
>>>
>>> "Bret Butcher" <bretbb@yahoo.com> wrote in message
>>> news:ckommb$mar$1@eclipse.org...
>>> > Amen, I can do without some of the 1.5 features but enums are a must!
>>> >
>>> > "Steven Buroff" <sburoff@optonline.net> wrote in message
>>> > news:ckltv0$ofs$1@eclipse.org...
>>> > >
>>> > > "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
>>> > > news:cklj3d$3dm$1@eclipse.org...
>>> > > > fyi - we are currently working on implementing compiler support
>>> for
>>> > enums.
>>> > >
>>> > > Hooray!!! :-) Thank you.
>>> > >
>>> > >
>>> > > >
>>> > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
>>> > > > news:ckjgj1$hs0$1@eclipse.org...
>>> > > > > Thanks everyone!
>>> > > > >
>>> > > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
>>> > > > > news:ckhhv5$3jk$1@eclipse.org...
>>> > > > > > I guess the new and noteworthy session is incorrect. A shame
>> since
>>> I
>>> > > > love
>>> > > > > > eclipse but will have to find another solution... Any ideas or
>>> > > > workarounds
>>> > > > > > would be appreciated.
>>> > > > > >
>>> > > > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote in
>>> > message
>>> > > > > > news:ckhhh1$2nb$1@eclipse.org...
>>> > > > > > > enum are not supported yet.
>>> > > > > > > --
>>> > > > > > > Olivier
>>> > > > > >
>>> > > > > >
>>> > > > >
>>> > > > >
>>> > > >
>>> > > >
>>> > >
>>> > >
>>> >
>>> >
>>>
>>>
>>
>>
>
Re: 3.1 M2 and enums... [message #183305 is a reply to message #183289] Fri, 22 October 2004 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: bretbb.yahoo.com

Ditto! JUnit flags regression errors in a heartbeat whereas manual
regression
tests take days and still miss problems!

"Bob Kerns" <rwk@acm.org> wrote in message news:clambm$ov1$1@eclipse.org...
> As do the nightly builds up to and including N20041021. I guess we just
have
> to wait.
>
> What a mess this thing would be without unit tests! (As would my own
> projects). JUnit gets my nod for most all-time valuable software per line
of
> code.
>
> Waiting and watching those JUnit reports for an acceptable build! ;=)
>
> "Andrei Loskutov" <loskutov@gmx.de> wrote in message
> news:opsf6n6dbh6144ym@andy...
> > Which build is it? N20041019 ? Because I20041019 seems to be buggy.
> >
> > Am Wed, 20 Oct 2004 12:12:55 +0200 hat Philippe Mulet
> > <philippe_mulet@fr.ibm.com> geschrieben:
> >
> >> Enum constants with arguments are now operational.
> >>
> >> "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> >> news:cl00vj$393$1@eclipse.org...
> >>> I got some basic support for enums working. Still missing enum
constant
> >> with
> >>> arguments and bodies, but this should occur quickly.
> >>> Plus all subtle error situations to diagnose...
> >>>
> >>> "Bret Butcher" <bretbb@yahoo.com> wrote in message
> >>> news:ckommb$mar$1@eclipse.org...
> >>> > Amen, I can do without some of the 1.5 features but enums are a
must!
> >>> >
> >>> > "Steven Buroff" <sburoff@optonline.net> wrote in message
> >>> > news:ckltv0$ofs$1@eclipse.org...
> >>> > >
> >>> > > "Philippe Mulet" <philippe_mulet@fr.ibm.com> wrote in message
> >>> > > news:cklj3d$3dm$1@eclipse.org...
> >>> > > > fyi - we are currently working on implementing compiler support
> >>> for
> >>> > enums.
> >>> > >
> >>> > > Hooray!!! :-) Thank you.
> >>> > >
> >>> > >
> >>> > > >
> >>> > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> >>> > > > news:ckjgj1$hs0$1@eclipse.org...
> >>> > > > > Thanks everyone!
> >>> > > > >
> >>> > > > > "Bret Butcher" <bretbb@yahoo.com> wrote in message
> >>> > > > > news:ckhhv5$3jk$1@eclipse.org...
> >>> > > > > > I guess the new and noteworthy session is incorrect. A shame
> >> since
> >>> I
> >>> > > > love
> >>> > > > > > eclipse but will have to find another solution... Any ideas
or
> >>> > > > workarounds
> >>> > > > > > would be appreciated.
> >>> > > > > >
> >>> > > > > > "Olivier Thomann" <olivier_thomannNOSPAM@ca.ibm.com> wrote
in
> >>> > message
> >>> > > > > > news:ckhhh1$2nb$1@eclipse.org...
> >>> > > > > > > enum are not supported yet.
> >>> > > > > > > --
> >>> > > > > > > Olivier
> >>> > > > > >
> >>> > > > > >
> >>> > > > >
> >>> > > > >
> >>> > > >
> >>> > > >
> >>> > >
> >>> > >
> >>> >
> >>> >
> >>>
> >>>
> >>
> >>
> >
>
>
Previous Topic:A Javadoc Tool, Anyone Interested?
Next Topic:Packages beginning with mil
Goto Forum:
  


Current Time: Sat May 31 10:57:00 EDT 2025

Powered by FUDForum. Page generated in 0.48345 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top