From: SourceForge.net <no...@so...> - 2008-01-15 17:34:11
|
Feature Requests item #1872264, was opened at 2008-01-15 18:34 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351645&aid=1872264&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: None Group: None Status: Open Priority: 5 Private: No Submitted By: Hendrik Maryns (hamaryns) Assigned to: Nobody/Anonymous (nobody) Summary: [Java 5+] Add @Override to finalise() in Java Initial Comment: When using Java 1.5+, the finalize() method should be tagged with @Override when overriding it. It would be nice if there were some option (e.g. --java-version=1.5) that would insert those at the appropriate place. So when wrapping extern struct mgTreeNode { mA a; /* alphabet element */ struct mgTreeNode *left, *right; /* successors */ mgId id; /* state space id */ mgState state; /* automaton state */ }; I’d like the produced class to have … protected static long getCPtr(mgTreeNode obj) { return (obj == null) ? 0 : obj.swigCPtr; } @Override protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; IvbJNI.delete_mgTreeNode(swigCPtr); } swigCPtr = 0; } … ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=351645&aid=1872264&group_id=1645 |