The Artima Developer Community
Sponsored Link

Java Buzz Forum
Be a language designer...

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Be a language designer... Posted: Aug 17, 2004 3:41 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Be a language designer...
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Eric Gunnerson, formerly of the C# team, got an email stating: When I'm writing code, I often come across a situation where my code throws an exception because another component called with a null parameter. I'd like a way to prevent that from happening. People started down the path of having an Annotation which would be able to enforce the contract that nulls can't be passed in (@NullNotAccepted void doFoo(String whee) { }). I don't know how valuable this would be, as you can do checks yourself, or even use AOP to do some of this for you. The key for me is having a decent trace on what the hell is going on when a NullPointerException is thrown. I want my system to tell me exactly what was going on when this happened. With the right info you can then attack the problem, but how often do you get a NullPointerException with zero information and have no idea what the hell is going on! This just comes down to having a nice policy of being good with exception handling, and having precise reporting.

Read: Be a language designer...

Topic: IOC Conundrum Previous Topic   Next Topic Topic: An Analysis of Strut's Dependency Injection

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use