This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Compiler bug Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Compiler bug" Watch "Compiler bug" New topic
Author

Compiler bug

Geoffrey Falk
Ranch Hand

Joined: Aug 17, 2001
Posts: 171
    
    1
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: 24183
    
  34

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
    
    1
I have reported it.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Compiler bug
 
Similar Threads
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
boolean
who can get the simplest code?