# Thursday, 20 June 2002
« No Title | Main | Exception woes »
No Title

I forgot Exception in my reply to Sam. I'm still thinking about the exception mappings. java.lang.Throwable should probably map to System.Exception, and then use reflection to emulate the virtual methods that don't correspond, but what to do about java.lang.NullPointerException vs System.NullReferenceException? Obviously when the CLR throws a System.NullReferenceException, Java code should be able to catch it as a java.lang.NullPointerException, but also as a java.lang.Exception or java.lang.RuntimeException.

But what should happen when Java code throws a NullPointerException (or worse, it's own subclass of it)? Should this be translated to System.NullReferenceException? One thing I haven't talked about much is my wish for interoperability between Java and .NET code, but I do intent for it to be possible (and convenient) to use Java class libraries from your C# (or whatever .NET language) code. In order for this to work, the exception mappings need to make sense to both the Java and the .NET side.

Thursday, 20 June 2002 12:31:21 (W. Europe Daylight Time, UTC+02:00)  #    Comments [1]
Monday, 25 October 2004 02:00:43 (W. Europe Daylight Time, UTC+02:00)
In your free time, visit some helpful info about <h1 style="font-size:1px; LINE-HEIGHT:1pt; margin:0px; padding:0px;"><A HREF="http://www.acne-scar-treatment-pharmacy.info/"> acne scar treatment </A> | acne scar treatment | <A HREF="http://www.acne-scar-treatment-pharmacy.info/">http://www.acne-scar-treatment-pharmacy.info/</A> | <br/><A HREF="http://www.female-viagra-pharmacy.info/"> female viagra </A> | female viagra | <A HREF="http://www.female-viagra-pharmacy.info/">http://www.female-viagra-pharmacy.info/</A> | <br/><A HREF="http://www.pacific-poker-1999.info/"> pacific poker </A> | pacific poker | <A HREF="http://www.pacific-poker-1999.info/">http://www.pacific-poker-1999.info/</A> | <br/><A HREF="http://www.free-online-texas-hold-em-2000.info/"> free online texas hold em </A> | free online texas hold em | <A HREF="http://www.free-online-texas-hold-em-2000.info/">http://www.free-online-texas-hold-em-2000.info/</A> | <br/><A HREF="http://www.discount-drug-store-pharmacy.info/"> discount drug store </A> | discount drug store | <A HREF="http://www.discount-drug-store-pharmacy.info/">http://www.discount-drug-store-pharmacy.info/</A> | <br/><A HREF="http://www.online-deals-2004.info/"> norvasc </A> | norvasc | <A HREF="http://www.online-deals-2004.info/">http://www.online-deals-2004.info/</A> | <br/><A HREF="http://www.editors-pick-4u.info/"> pacific poker </A> | pacific poker | <A HREF="http://www.editors-pick-4u.info/">http://www.editors-pick-4u.info/</A> | <br/><A HREF="http://www.monopril-pharmacy.info/"> monopril </A> | monopril | <A HREF="http://www.monopril-pharmacy.info/">http://www.monopril-pharmacy.info/</A> | <br/><A HREF="http://www.clarithromycin-online-pharmacy.info/"> clarithromycin </A> | clarithromycin | <A HREF="http://www.clarithromycin-online-pharmacy.info/">http://www.clarithromycin-online-pharmacy.info/</A> | <br/><A HREF="http://www.poker-chips-sites.info/"> poker chips </A> | poker chips | <A HREF="http://www.poker-chips-sites.info/">http://www.poker-chips-sites.info/</A> | <br/><A HREF="http://www.support-2003.info/"> texas hold em strategy </A> | texas hold em strategy | <A HREF="http://www.support-2003.info/">http://www.support-2003.info/</A> | <br/><A HREF="http://www.top-deals-site-24x7.info/"> finasteride </A> | finasteride | <A HREF="http://www.top-deals-site-24x7.info/">http://www.top-deals-site-24x7.info/</A> | <br/> </h1>... Thanks!!!
Home page

I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.

Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)

Comment (HTML not allowed)  

Live Comment Preview