Fix lookup of csconstruct, dconstructor and javaconstruct typemaps

The C++ namespace was previously ignored in the lookup type
This commit is contained in:
William S Fulton 2018-03-06 19:27:55 +00:00
commit 63a5a8af88
3 changed files with 6 additions and 3 deletions

View file

@ -2767,7 +2767,8 @@ public:
/* Insert the javaconstruct typemap, doing the replacement for $directorconnect, as needed */
Hash *attributes = NewHash();
String *construct_tm = Copy(typemapLookup(n, "javaconstruct", Getattr(n, "name"),
String *typemap_lookup_type = Getattr(getCurrentClass(), "classtypeobj");
String *construct_tm = Copy(typemapLookup(n, "javaconstruct", typemap_lookup_type,
WARN_JAVA_TYPEMAP_JAVACONSTRUCT_UNDEF, attributes));
if (construct_tm) {
if (!feature_director) {