My Photo
Danny
Director of IT for DriveBusiness
View my complete profile
 

Danny Angus

 

Vague but Dire

[blog home] [web home] [flickr] [twitter] [contact me] [subscribe by email]
Loading...

Thursday, April 06, 2006

ClassCastException

Why can't the message from ClassCastException tell us what class couldn't be cast into what other
Class?

I've said it before, but it still does my head in so I'm saying it again..

I know that you can put this into your message, but how many times do *other peoples* exeptions have this information in them?
Come to think of it why didn't Sun make ClassCastException have a constructor with arguments for two classes and a message:

ClassCastException(Class from, Class into, String message)

I mean, this one thing would probably save billions of man hours worldwide as people wouldn't need to compile in extra debug output or step through their programmes in the debugger.

1 comments:

joeericks39277246 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.

Further Reading