From: SourceForge.net <no...@so...> - 2006-12-15 11:22:14
|
Bugs item #1616308, was opened at 2006-12-15 11:22 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1616308&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: java Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Matt Davey (mcdavey) Assigned to: William Fulton (wsfulton) Summary: methodmodifier required when setting javadestruct typemap Initial Comment: I just updated to swig 1.3.31, and got the following error: ------- Error: No methodmodifiers attribute defined in javadestruct typemap for mystruct ------- This comes from a typemap I've been using for a while, that overrides the delete method on a wrapped c struct: ----- %typemap(javadestruct, methodname="delete") SWIGTYPE { [....] } ----- I find that I have to add methodmodifiers="public" to the typemap. This is presumably part of the change logged in CHANGES for 10/12/2006, in which the 'delete' method was made 'syncrhonized'. It seems to me to be a bug that the 'methodmodifiers' attribute should be obligatory for 'javadestruct' typemaps. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1616308&group_id=1645 |
From: SourceForge.net <no...@so...> - 2006-12-15 23:03:23
|
Bugs item #1616308, was opened at 2006-12-15 11:22 Message generated for change (Comment added) made by wsfulton You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1616308&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: java Group: None >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Matt Davey (mcdavey) Assigned to: William Fulton (wsfulton) Summary: methodmodifier required when setting javadestruct typemap Initial Comment: I just updated to swig 1.3.31, and got the following error: ------- Error: No methodmodifiers attribute defined in javadestruct typemap for mystruct ------- This comes from a typemap I've been using for a while, that overrides the delete method on a wrapped c struct: ----- %typemap(javadestruct, methodname="delete") SWIGTYPE { [....] } ----- I find that I have to add methodmodifiers="public" to the typemap. This is presumably part of the change logged in CHANGES for 10/12/2006, in which the 'delete' method was made 'syncrhonized'. It seems to me to be a bug that the 'methodmodifiers' attribute should be obligatory for 'javadestruct' typemaps. ---------------------------------------------------------------------- >Comment By: William Fulton (wsfulton) Date: 2006-12-15 23:03 Message: Logged In: YES user_id=242951 Originator: NO Not a bug. This typemap is rarely overridden, but as you have, you must decide whether or not you are going with the new scheme or sticking with the old one, by specifying the methodmodifiers attribute. The error is there to make you decide. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1616308&group_id=1645 |