[D] Refer to the built-in Exception class using its fully-qualified name.
A C++ class called "Exception" could shadow the built-in one before, leading to compilation errors in the exception handling code. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12318 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d7cc6904c5
commit
a22df2eca9
4 changed files with 29 additions and 13 deletions
|
|
@ -3216,7 +3216,7 @@ private:
|
|||
if (*Char(destructor_call)) {
|
||||
Replaceall(dispose_code, "$wcall", destructor_call);
|
||||
} else {
|
||||
Replaceall(dispose_code, "$wcall", "throw new Exception(\"C++ destructor does not have public access\")");
|
||||
Replaceall(dispose_code, "$wcall", "throw new object.Exception(\"C++ destructor does not have public access\")");
|
||||
}
|
||||
|
||||
if (*Char(dispose_code)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue