|
You need to use an int so you can track positive values in the range [32K, 64K] and negative values in the range [-32k, -64k]. Also, it simplifies a bunch of code all over, as you don't have to mask off the sign bit everywhere.
Ah yes, you're right. Actually, code attributes could grow up to 2G, with the restriction that no exception table entries (TRY CATCH FINALLY, SYNCHRONIZED) must appear beyond offset 64K, and no line number info and local variable info can be given after offset 64K.
Will go into the next version of JANINO.
Arno, I do not have the ability to close this issue. I think my login to Jira does not have the power. You can consider this closed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
Why do you change Offset.offset from SHORT to INT? We can't go beyond 64K, do we?
CU
Arno