Missing smart pointer handling in Java director extra methods

- Add CHANGES file entry
- Add testcase
This commit is contained in:
William S Fulton 2017-05-25 20:35:18 +01:00
parent a2d65ca3bb
commit a4d01cddeb
2 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,10 @@ the issue number to the end of the URL: https://github.com/swig/swig/issues/
Version 4.0.0 (in progress)
===========================
2017-05-25: asibross
[Java] #370 #417 Missing smart pointer handling in Java director extra methods
swigReleaseOwnership() and swigTakeOwnership().
2017-05-23: wsfulton
[Java] #230 #759 Fix Java shared_ptr and directors for derived classes java compilation
error.

View File

@ -39,6 +39,13 @@ public class director_smartptr_runme {
check(director_smartptr.FooDerived.callPong(myBarFooDerived), "director_smartptr_MyBarFooDerived.pong();director_smartptr_MyBarFooDerived.ping()");
check(director_smartptr.FooDerived.callUpcall(myBarFooDerived, fooBar), "overrideDerived;Bar::Foo2::Foo2Bar()");
director_smartptr.Foo myFoo3 = myBarFoo.makeFoo();
myFoo3.swigReleaseOwnership();
myFoo3.swigTakeOwnership();
director_smartptr.FooDerived myBarFooDerived2 = new director_smartptr_MyBarFooDerived();
myBarFooDerived2.swigReleaseOwnership();
myBarFooDerived2.swigTakeOwnership();
}
}