Found a bug in the java compiler?

Just wait 3 weeks to “take a number.” Unbelievable. Yes, that means after three weeks, sun will assign your bug a number. Who knows when they’ll fix it.

This code:
final String name = false ? "Heinz" : null;
System.out.println(name);

prints “Heinz.”

And the funniest part is that the author of this post asks everyone not to be too hard on Sun, because “they are overloaded with bug reports as it is.”

Advertisements

About Sanju
I am Software Programmer. I am working in JAVA/J2EE Technologies.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: