This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Java interface classes in C++


Hi,
In fixing 12335 I came across some ambiguity with extern "Java" classes.
Is any of the attached valid? Currently we barf on One::~One complaining
that its 'int' parameter is non-java. That's a meaningless to the user
-- its the in_charge parm.

I can fix this by skipping such parms in check_java_method, but is that
correct?

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk

extern "Java" {
  class One 
  {
    ~One ();
    One ();
  };

  class Two {};

  class Three : One {};

  class Four : Two {};

  class Five : One, Two {};

  class Six : virtual One, virtual Two {};
  
}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]