public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/25040]  New: gcjh generated .h files missing methods inherited from interfaces
@ 2005-11-25 23:00 michele at focuseek dot com
  2005-11-25 23:01 ` [Bug java/25040] " michele at focuseek dot com
  2005-11-29 17:09 ` tromey at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: michele at focuseek dot com @ 2005-11-25 23:00 UTC (permalink / raw)
  To: java-prs

In the attached example the interface I declares I.blah(). The abstract class A
then implements I but doesn't define the method nor re-declares it as abstract.

Given these definitions both javac and gcj accept calling blah() using an A
reference. Obviously you need to derive a non-abstract class C from A and
create an object of this second class in order to get such a reference.

Instead gcjh doesn't put a declaration for A::blah() in the A.h file it
generates so there is no way to invoke A.blah() from C++.

If blah() is re-declared s abstract in A then gcjh outputs the declaration for
A::blah().


-- 
           Summary: gcjh generated .h files missing methods inherited from
                    interfaces
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michele at focuseek dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25040


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/25040] gcjh generated .h files missing methods inherited from interfaces
  2005-11-25 23:00 [Bug java/25040] New: gcjh generated .h files missing methods inherited from interfaces michele at focuseek dot com
@ 2005-11-25 23:01 ` michele at focuseek dot com
  2005-11-29 17:09 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: michele at focuseek dot com @ 2005-11-25 23:01 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from michele at focuseek dot com  2005-11-25 23:01 -------
Created an attachment (id=10341)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10341&action=view)
A test case


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25040


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug java/25040] gcjh generated .h files missing methods inherited from interfaces
  2005-11-25 23:00 [Bug java/25040] New: gcjh generated .h files missing methods inherited from interfaces michele at focuseek dot com
  2005-11-25 23:01 ` [Bug java/25040] " michele at focuseek dot com
@ 2005-11-29 17:09 ` tromey at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-11-29 17:09 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from tromey at gcc dot gnu dot org  2005-11-29 17:09 -------


*** This bug has been marked as a duplicate of 15411 ***


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25040


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-11-29 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-25 23:00 [Bug java/25040] New: gcjh generated .h files missing methods inherited from interfaces michele at focuseek dot com
2005-11-25 23:01 ` [Bug java/25040] " michele at focuseek dot com
2005-11-29 17:09 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).