Does Beanshell Support Numeric Literals with Underscores?

Edward Wong <[email protected]> Wed, 10 Jun 2015 20:39:49 +0000
Newsgroups gmane.comp.java.beanshell.user
Message-ID <A764C2D47270E94494BABE41A377A890BD2649D3@wdscexmb01>
I apologize in advance if this isn't the right place to email this question. I'm trying to write some scripts in which I use binary values along with underscores to make it easier to read.

For Example:

int BIT_MASK = 0b1000_1111;

However when I try running this, I get an error that looks like this:

*** User input parse error at line 1, column 17.  Encountered: b1000_1111

Is it correct that "Numeric Literals with Underscores" isn't supported in Beanshell? Are there any plans to make it work?

~ Edward Wong
------------------------------------------------------------------------------