summaryrefslogtreecommitdiff
path: root/Lib/java
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2016-02-24 08:30:10 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2016-02-24 08:30:10 +0000
commit1737fc9b9b16d0b57cce6ef68333de61b0e959d8 (patch)
treeec5107bf19e2d7ef29a5d898db2b866508de68e1 /Lib/java
parente7bb3afa0c94bcaaa17de9da5a4e11140218ea5c (diff)
downloadswig-1737fc9b9b16d0b57cce6ef68333de61b0e959d8.tar.gz
Add Java premature garbage collection prevention parameter (pgcpp) to interface feature
pgcpp was turned off but it is still needed for the interface feature to prevent premature garbage collection of the proxy class being passed into the C++ layer.
Diffstat (limited to 'Lib/java')
-rw-r--r--Lib/java/feature_interface.i2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/java/feature_interface.i b/Lib/java/feature_interface.i
index 1359db503..0316abead 100644
--- a/Lib/java/feature_interface.i
+++ b/Lib/java/feature_interface.i
@@ -1,6 +1,6 @@
%define DECLARE_INTERFACE_(INTERFACE, IMPL, CTYPE...)
%feature("interface", name="INTERFACE") CTYPE;
-%typemap(jtype, nopgcpp="1") CTYPE, CTYPE *, CTYPE *const&, CTYPE [], CTYPE & "long"
+%typemap(jtype) CTYPE, CTYPE *, CTYPE *const&, CTYPE [], CTYPE & "long"
%typemap(jstype) CTYPE, CTYPE *, CTYPE *const&, CTYPE [], CTYPE & "INTERFACE"
%typemap(javain) CTYPE, CTYPE & "$javainput." ## #INTERFACE ## "_SWIGInterfaceUpcast()"
%typemap(javain) CTYPE *, CTYPE *const&, CTYPE [] "($javainput == null) ? 0 : $javainput." ## #INTERFACE ## "_SWIGInterfaceUpcast()"