Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Cheetah/Generics
Cheetah/Generics [message #164748] Wed, 16 June 2004 11:47 Go to next message
Eclipse UserFriend
Originally posted by: tcn.spamgourmet.org

Hi!

What's wrong with this one?

Iterator<Element>iter = elem.elementIterator(); // BTW dom4j

Timo
Re: Cheetah/Generics [message #164763 is a reply to message #164748] Wed, 16 June 2004 12:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

Timo Nentwig wrote:

> What's wrong with this one?
>
> Iterator<Element>iter = elem.elementIterator(); // BTW dom4j

1: no space between type decl and temp name
2: unchecked assignment from raw type to 'cooked' type
(if elementIterator return just Iterator)

a.
Re: Cheetah/Generics [message #164779 is a reply to message #164763] Wed, 16 June 2004 12:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcn.spamgourmet.org

adam kiezun wrote:
> Timo Nentwig wrote:
>
>> Iterator<Element>iter = elem.elementIterator(); // BTW dom4j
>
> 2: unchecked assignment from raw type to 'cooked' type

Cooked type?
Re: Cheetah/Generics [message #164786 is a reply to message #164779] Wed, 16 June 2004 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

> Cooked type?

not raw

a.
Re: Cheetah/Generics [message #164794 is a reply to message #164786] Wed, 16 June 2004 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tcn.spamgourmet.org

adam kiezun wrote:
>> Cooked type?
>
> not raw

So what does the final line look like?
Re: Cheetah/Generics [message #164802 is a reply to message #164794] Wed, 16 June 2004 14:31 Go to previous message
Eclipse UserFriend
Originally posted by: akiezun.cutthis.mit.this.edu.andthis

Timo Nentwig wrote:

> adam kiezun wrote:
>
>>> Cooked type?
>>
>> not raw
>
> So what does the final line look like?

what do you mean?

assigning raw to cooked is unsound so it should be flagged as such by
compilers. it's allowed only for compatibility with existing non-generic
code.

a.
Previous Topic:Incorporating Project Compilation Similar To JDT
Next Topic:Editor Docking in 3RC2.
Goto Forum:
  


Current Time: Wed May 14 15:44:08 EDT 2025

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

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

Back to the top