warning fix

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6693 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-11-08 21:17:11 +00:00
commit 6caf912607

View file

@ -60,43 +60,43 @@ public class runme
try {
default_args.exceptionspec();
throw new Exception("exceptionspec 1 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
default_args.exceptionspec(-1);
throw new Exception("exceptionspec 2 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
default_args.exceptionspec(100);
throw new Exception("exceptionspec 3 failed");
} catch (Exception e) {
} catch (Exception) {
}
Except ex = new Except(false);
try {
ex.exspec();
throw new Exception("exspec 1 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
ex.exspec(-1);
throw new Exception("exspec 2 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
ex.exspec(100);
throw new Exception("exspec 3 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
ex = new Except(true);
throw new Exception("Except constructor 1 failed");
} catch (Exception e) {
} catch (Exception) {
}
try {
ex = new Except(true, -2);
throw new Exception("Except constructor 2 failed");
} catch (Exception e) {
} catch (Exception) {
}
// Default parameters in static class methods