Support Binary Literals (java7)
-------------------------------
Key: QDOX-184
URL: http://jira.codehaus.org/browse/QDOX-184
Project: QDox
Issue Type: Improvement
Components: Parser
Reporter: Robert Scholte
Assignee: Robert Scholte
See http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000929.html for
more details.
Some examples:
{code}
// An 8-bit 'byte' literal.
byte aByte = (byte)0b00100001;
// A 16-bit 'short' literal.
short aShort = (short)0b1010000101000101;
// Some 32-bit 'int' literals.
int anInt1 = 0b10100001010001011010000101000101;
int anInt2 = 0b101;
int anInt3 = 0B101; // The B can be upper or lower case as per the x in
"0x45".
// A 64-bit 'long' literal. Note the "L" suffix, as would also be used
// for a long in decimal, hexadecimal, or octal.
long aLong =
0b01010000101000101101000010100010110100001010001011010000101000101L;
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email