#265 final modifier not applied

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

The snippet below demonstrates that the "final" field
modifier is not applied.

bsh % class FClass { public static final int fnum = 100; };
bsh % bsh % javap( FClass );
Class class FClass extends class java.lang.Object
public bsh.This FClass._bshThisFClass
public static bsh.This FClass._bshStaticFClass
public static int FClass.fnum
bsh % FClass.fnum = 200;
bsh % print( FClass.fnum );
200

Discussion