• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ClassCastException trying to show WOStats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >ClassCastException trying to show WOStats (From: Paul Hoadley <email@hidden>)
 >Re: ClassCastException trying to show WOStats (From: Chuck Hill <email@hidden>)
 >Re: ClassCastException trying to show WOStats (From: Anjo Krank <email@hidden>)

  • Prev by Date: Re: Hyperlink in Image Map?
  • Next by Date: Re: Hyperlink in Image Map?
  • Previous by thread: Re: ClassCastException trying to show WOStats
  • Next by thread: Re: ClassCastException trying to show WOStats
  • Index(es):
    • Date
    • Thread