This is the mail archive of the gcc-bugs@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]

[Bug java/13098] New: accepts invalid code referencing package only constructor


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


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