#264 interface static constants broken.

open
nobody
Parsing (77)
5
2006-07-10
2006-07-10
Eric_Lindahl
No

Below snippet defining interface constants should work.

bsh % public interface Directions
{
static final int NORTH = 0;
static final int SOUTH = 1;
static final int EAST = 2;
static final int WEST = 3;
}
// Error: EvalError: Typed variable declaration : LHS
(NORTH) can't access field:
java.lang.IllegalAccessException: Field is final : at
Line: 1 : in file: <unknown file> : static final int
NORTH = 0

Discussion