diff options
author | jfrijters <jfrijters> | 2008-04-22 10:47:18 +0400 |
---|---|---|
committer | jfrijters <jfrijters> | 2008-04-22 10:47:18 +0400 |
commit | 8ea5f8fd42c5fd36b3ce802d239f9a8553a3719d (patch) | |
tree | 6eb30b228daf834add9ef8e127230e7320d703dc /openjdk/map.xml | |
parent | 2c35fdd246d2e8fba18654b40c564a859ceb50af (diff) |
Include exception message in ClassCastException.
Diffstat (limited to 'openjdk/map.xml')
-rw-r--r-- | openjdk/map.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openjdk/map.xml b/openjdk/map.xml index 764eb09a..ac912154 100644 --- a/openjdk/map.xml +++ b/openjdk/map.xml @@ -2081,7 +2081,12 @@ <exception src="System.IndexOutOfRangeException" dst="java.lang.ArrayIndexOutOfBoundsException" /> <!-- HACK for String methods, we remap ArgumentOutOfRangeException to StringIndexOutOfBoundsException --> <exception src="System.ArgumentOutOfRangeException" dst="java.lang.StringIndexOutOfBoundsException" /> - <exception src="System.InvalidCastException" dst="java.lang.ClassCastException" /> + <exception src="System.InvalidCastException" dst="java.lang.ClassCastException"> + <code> + <callvirt type="System.Exception" name="get_Message" sig="()Ljava.lang.String;" /> + <newobj class="java.lang.ClassCastException" name="<init>" sig="(Ljava.lang.String;)V" /> + </code> + </exception> <!-- NOTE we "map" to java.lang.Error, because that is the base class of all possible mappings. The * in front of the class name means that all subclasses can be thrown as well. --> |