# Thursday, June 20, 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, June 20, 2002 12:31:21 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [1]
Monday, October 25, 2004 2:00:43 AM (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!!!
Comments are closed.