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

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

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

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

Joined: Jul 08, 2003
Posts: 24166

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.

I agree. Here's the link:
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