aspose file tools
The moose likes Java in General and the fly likes Compiler bug Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Compiler bug" Watch "Compiler bug" New topic
Author

Compiler bug

Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
This code should not compile:





Sun Certified Programmer for the Java 2 Platform
Christopher McCauley
Greenhorn

Joined: Jan 03, 2005
Posts: 27
agreed, Is this a question?


JCM<br />good at cookin'
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

That's a bug, all right. Both the JDK 1.4.2 and 1.5 compilers accept this code. Jikes rejects it, however, as does Eclipse's built-in compiler. You ought to report it.


[Jess in Action][AskingGoodQuestions]
Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
I have reported it.

Thanks
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Compiler bug
 
Similar Threads
boolean
Ternary Operator
why is the below code not printing 2 i agree its a post increment but its being assigned to x???
SCJP Operator question
who can get the simplest code?