This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13098] New: accepts invalid code referencing package only constructor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Nov 2003 05:50:38 -0000
- Subject: [Bug java/13098] New: accepts invalid code referencing package only constructor
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
try to compile this, gcj should reject this.
t/t.java:
package t;
public class t
{
t(){}
}
test.java:
import t.t;
class test {
public static void main(String argv[]) {
t b = new t();
}
}
--
Summary: accepts invalid code referencing package only
constructor
Product: gcc
Version: 3.4
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,s28patel at student dot
math dot uwaterloo dot ca
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13098