JDK-6860965 : Project Coin: binary literals
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-07-15
  • Updated: 2017-05-16
  • Resolved: 2012-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b73Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
One of the submissions to Project Coin was to add binary integer literals to the platform:

http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000929.html

In short, with a prefix of "0b" literals could be written in binary such as 0b1111 instead of 0xF.

Comments
EVALUATION A fine idea.
15-07-2009