Menu

#278 Provide interface java.util.List<> for Java Vector wrappers

None
closed
None
5
2017-06-05
2011-08-17
No

This patch provides the full java.util.List<> interface for Java Vector wrappers. It also adjusts the test suite accordingly, and adds tests that check the improved interface. It applies well to the current trunk version (r12777).

The patch doesn't make any test cases fail. (That is, without the patch all test cases except "java/autodoc.cpptest" succeed. After applying the patch, the test case "java/autodoc.cpptest" is still the only one that fails.)

This patch supersedes the previous patch of https://sourceforge.net/tracker/?func=detail&atid=301645&aid=3325013&group_id=1645

Discussion

  • Volker Diels-Grabsch

    Provide the full java.util.List<> interface for Java Vector wrappers

     
  • Niklas Melander

    Niklas Melander - 2011-08-22

    Is it intended to support shared_ptr? When I apply the patch I get a syntax error when using shared_ptr. The C# implementation seems to handle shared_ptr.

    SWIG_STD_VECTOR_ENHANCED(boost::shared_ptr<A>)
    %template(APtrList) std::vector<boost::shared_ptr<A> >;

     
  • William Fulton

    William Fulton - 2011-08-30

    The autodoc testcase has been fixed in trunk now. Thanks for the patch, I will be looking at this in detail and with much interest as soon as I can.

     
  • daminetreg

    daminetreg - 2012-08-28

    This patch works great on my side, currently as separate std_vector.i, thanks for the great work. I hope it will get merged. :)

     
  • William Fulton

    William Fulton - 2017-06-05
    • status: open --> closed
    • assigned_to: William Fulton
    • Group: -->
     
  • William Fulton

    William Fulton - 2017-06-05
     

Log in to post a comment.