public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/23655] New: [3.4/4.0/4.1 Regression] Accepts invalid
@ 2005-08-31 15:30 pinskia at gcc dot gnu dot org
2005-09-05 15:09 ` [Bug java/23655] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-31 15:30 UTC (permalink / raw)
To: java-prs
We accept the following invalid code from 3.4.0 and above:
interface A { void methA(); }
class B implements A{
void methA() { }
}
We used to error out with:
B.java:4: error: Class `B' must override `B.methA()' with a public method in order to implement
interface `A'.
void methA() { }
^
1 error
Which is correct.
Sun's 1.4.0 javac gives:
B.java:3: methA() in B cannot implement methA() in A; attempting to assign weaker access privileges;
was public
class B implements A{
^
1 error
--
Summary: [3.4/4.0/4.1 Regression] Accepts invalid
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
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=23655
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-05 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-31 15:30 [Bug java/23655] New: [3.4/4.0/4.1 Regression] Accepts invalid pinskia at gcc dot gnu dot org
2005-09-05 15:09 ` [Bug java/23655] " pinskia 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).