[Bug java/14853] New: gcj doesnt reject invalid code with -c

konqueror at gmx dot de gcc-bugzilla@gcc.gnu.org
Mon Apr 5 15:04:00 GMT 2004


When compiling the following code with "gcj -C" an error message orrurs 
correctly as with other java compilers too. With "gcj -c" this code gets 
compiled successfully (incorrectly) and works, but it should be rejected too. 
 
public class FinalTest 
{ 
public static void main (String[] args) 
{ 
        System.out = new java.io.PrintStream(null); 
} 
}

-- 
           Summary: gcj doesnt reject invalid code with -c
           Product: gcc
           Version: 3.5.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=14853



More information about the Java-prs mailing list