Ensure 'javapackage' typemap is used as it stopped working from version 2.0.5

This commit is contained in:
William S Fulton 2013-01-30 22:18:13 +00:00
commit 397409fbb1
3 changed files with 8 additions and 4 deletions

View file

@ -3527,7 +3527,7 @@ public:
String *pkg_path = Swig_typemap_lookup("javapackage", p, "", 0);
SwigType *type = Getattr(p, "type");
if (pkg_path || Len(pkg_path) == 0)
if (!pkg_path || Len(pkg_path) == 0)
pkg_path = package_path;
String *descriptor_out = Copy(descriptor_in);