Fix undefined behaviour when throwing exceptions

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7053 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-03-08 22:06:53 +00:00
commit ee16fd54e0
2 changed files with 8 additions and 9 deletions

View file

@ -16,7 +16,7 @@ public class runme
try {
li_std_string.test_value(null);
throw new Exception("Test 2 failed");
} catch (NullReferenceException) {
} catch (ArgumentNullException) {
}
// Checking expected use of %typemap(in) const std::string & {}
@ -30,7 +30,7 @@ public class runme
try {
li_std_string.test_const_reference(null);
throw new Exception("Test 4 failed");
} catch (NullReferenceException) {
} catch (ArgumentNullException) {
}
//