aspose file tools*
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
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: 24166
    
  30

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
why is the below code not printing 2 i agree its a post increment but its being assigned to x???
who can get the simplest code?
Ternary Operator
SCJP Operator question
boolean