Re: ClassCastException trying to show WOStats
Re: ClassCastException trying to show WOStats
- Subject: Re: ClassCastException trying to show WOStats
- From: Chuck Hill <email@hidden>
- Date: Wed, 10 Dec 2008 11:56:32 -0800
On Dec 10, 2008, at 11:36 AM, Anjo Krank wrote:
Am 10.12.2008 um 20:19 schrieb Chuck Hill:
There were some (IMO) unfortunate and inconsistent API changes in
5.4.x:
sessionsStats.setObjectForKey(getAverageSessionMemory(), "Avg.
Memory Per Session");
public HashMap getAverageSessionMemory()
....
return avg.hashMap();
"unfortunate", my *ss. Idiotic would be more like it?
I was trying to sugar coat it a little. :-) I am very, very unhappy
to see changes like this in the API.
Why is this a HashMap of all things and not a Map?
That there is the idiotic side of unfortunate.
Rather than change the WOStats page, one could change the Statistic
class in the manner that ERXStatisticsStore already is.
And report this as the bug that it is...
I don't have much hope of this going back to NSDictionary.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden