GCJ does not reject the following invalid code: 
 
public class NullTest 
{ 
  public static void main (String[] args) 
  { 
    int index = 1; 
    if (index == null) 
      index++; 
  } 
}

-- 
           Summary: gcj doesnt reject invalid code
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: konqueror at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 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=18682

Reply via email to