[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Collection-problem [Re: opp bug?]



On Sunday, December 10, 2000, at 12:48 AM, Don Berendsen wrote:

> Falko, 
>  
> Is this a case where HashTable.values() returns an inner class as happens  
> with java.util.HashMap?

Yes, it's a java.util.Collection$SynchronizedCollection

> In my application I wasn't able to return the  
> results of values() or keys() when using a HashMap. I got around this by  
> putting the map in a variable and using 
>  
> public Collection values(){ 
>    return new ArrayList(map.values()); 
> } 

Thanks. Seems like ozone doesn't like Collections (had the same problem with a vector). Maybe a hint in the documentation would be nice (next to the note that you can't use iterators/enumerations).

andy


-- 
Description forthcoming.