• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

New Feature in Java 7

 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is an interesting change...
Due to recent confusion regarding postfix operators, an explicit operator cast will be required in Java 7 to force traditional postfix behavior. In the absence of such a cast, the postfix operator will default to prefix operator behavior.

For example...

Obviously, this will break a lot of existing code, but the benefits are obvious.
 
Tim Weide
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yay! it's about time they did something that makes sense.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I heard that you don't need to set the classpath in Java 7.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Christophe Verre:
I heard that you don't need to set the classpath in Java 7.

Setting the classpath to the jdk/bin is a time-honored tradition!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic