Community
Participate
Working Groups
Usign 3.3M6, some implementation of this method returns -1. This is not specified. Modifier.NONE should be returned.
Martin, Do you agree with this?
Oh, yes, -1 is unexpected.
Released for 3.3M7. Updated regression tests with some check on the getModifiers() call.
According to getModifiers doc, it returns the 'bit-wise or of Modifier constants', which has no chance to evaluate to -1 (-1 is 0xFFFFFFFF, while Modifier constants are all in the 0x0000 to 0xFFFF range). Checking the source code... Verified for 3.3 M7 using source code v_751.