natField.cc
11.3 KB
-
natField.cc (setAddr): New function. · 033509da
* java/lang/reflect/natField.cc (setAddr): New function. Calls getAddr and then checks that the field isn't final. (setBoolean. setChar, setByte, setShort, setInt, setLong, setFloat, setDouble, set): Use setAddr instead of getAddr, to check for FINAL. (set): Call setAddr before check that new value has right type, to better match specified semantics. From-SVN: r49153
Per Bothner committed