Menu

#161 arrays_java.i fails to copy arguments in and out of director

open
nobody
None
5
2022-01-07
2006-11-09
No

The arrays_java.i fails to generate the correct copy
code to handle arguments that need to be copied in
and out of directors.

The supplied patch adds:

- some code to java.cxx to lookup the typemap
directorargout
- mods to arrays_java.i to handle copying the arguments
and to handle const results for arrayOut.
- a test case

Regards
Mark Donszelmann

Discussion

  • Mark Donszelmann

    diff against CVS HEAD 2006-11-07

     
  • Mark Donszelmann

    On top of previous patch

     
  • Mark Donszelmann

    Logged In: YES
    user_id=800216

    add another patch to avoid const declarations for c code.

     
  • Olly Betts

    Olly Betts - 2022-01-07

    Looks like the "some code to java.cxx to lookup the typemap directorargout" part of these patches was addressed by:

    commit 468ca084fc464f7eec1d0780e8a92bf451e5ea61
    Author: William S Fulton <wsf@fultondesigns.co.uk>
    Date:   Tue Dec 20 20:50:36 2011 +0000
    
        Correct special variables in 'directorargout' typemap. This change will break any 'directorargout' typemaps you may have written. Please change: to  and  to \n Also fix the named 'directorargout' DIRECTOROUT typemaps for these languages which didn't previously compile and add in ,  etc expansion.\n [C#, Go, Java, D] Add support for the 'directorargout' typemap.\n [Java] Add (char *STRING, size_t LENGTH) director typemaps.
    
     

Log in to post a comment.