public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21313] New: Incorrect visibility of "package" scope methods (compilation problem)
@ 2005-05-01  7:10 lhofhansl at yahoo dot com
  2005-05-01 13:50 ` [Bug java/21313] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 3+ messages in thread
From: lhofhansl at yahoo dot com @ 2005-05-01  7:10 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]

Linux (Fedora Core 3)
Pentium M
GCC 4.0.0

Compiling the following two classes produces error:
p2/B.java:7: error: Method ‘p1.A.f(int)’ was defined with return type
‘boolean’in class ‘p1.A’.
      void f( int x ) {}

/// A.java ///

package p1;
public class A
{
   boolean f( int x ) { return false; }
}

/// B.java ///

package p2;
import p1.A;

public class B extends A
{
   void f( int x ) {}
}

//////////////////

To reproduce place A.java in a directory p1, and B.java in directory p2.
Then compile B.java: gcj -C p2/B.java

A.f(...) should not be visible to class B and hence not cause this compilation
error. Sun's javac compiles these classes without error.

-- 
           Summary: Incorrect visibility of "package" scope methods
                    (compilation problem)
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: lhofhansl at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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

* [Bug java/21313] Incorrect visibility of "package" scope methods (compilation problem)
  2005-05-01  7:10 [Bug java/21313] New: Incorrect visibility of "package" scope methods (compilation problem) lhofhansl at yahoo dot com
@ 2005-05-01 13:50 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-01 13:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-01 13:50 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |13607
              nThis|                            |
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |rejects-valid
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-01 13:50:08
               date|                            |


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


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

* [Bug java/21313] Incorrect visibility of "package" scope methods (compilation problem)
       [not found] <bug-21313-10538@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:52 ` tromey at gcc dot gnu dot org
  0 siblings, 0 replies; 3+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from tromey at gcc dot gnu dot org  2007-01-09 20:47 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.


-- 

tromey at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.3.0


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


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

end of thread, other threads:[~2007-01-09 20:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-01  7:10 [Bug java/21313] New: Incorrect visibility of "package" scope methods (compilation problem) lhofhansl at yahoo dot com
2005-05-01 13:50 ` [Bug java/21313] " pinskia at gcc dot gnu dot org
     [not found] <bug-21313-10538@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:52 ` 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).