Problems getting SWIG to make %array_class methods show up in the correct Java package.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Problems getting SWIG to make %array_class methods show up in the correct Java package.

Jimi Damon

I have a top level module called Foo;

%module Foo


I want to use %array_class () to create an array of doubles.  The problem I have is that the methods do not show up inside of my java package  Foo;  

Instead what I keep seeing when compiling is error: type doublearray is not a member of object Foo (for the code )

/* Inside */
import Foo.*;

doublearray ary = new Foo.doublearray(10) ;  // Fails
// or
doublearray ary = new doublearray(10) ; //succeeds

My code instead has to refer to the doublearray without the Foo.  prefix. I would prefer to require the namespace Foo
 in order to access this doublearray type so it doesn't pollute the main program namespace.

I tried experimenting with %nspace(Foo) before the definition of %array_class(double,doublearray) but this had no effect.

Thanks for any suggestions on how to fix this.


WARNING - This e-mail or its attachments may contain controlled technical data or controlled technology within the definition of the International Traffic in Arms Regulations (ITAR) or Export Administration Regulations (EAR), and are subject to the export control laws of the U.S. Government. Transfer of this data or technology by any means to a foreign person, whether in the United States or abroad, without an export license or other approval from the U.S. Government, is prohibited. The information contained in this document is CONFIDENTIAL and property of ACCES I/O Products, Inc. Any unauthorized review, use, disclosure or distribution is prohibited without express written consent of ACCES I/O Products, Inc. If you are not the intended recipient, please contact the sender and destroy all copies of the original message and enclosed attachments.
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
Swig-user mailing list
[hidden email]