> In fact for hotspot, this kind of constant can be even more optimized
> than a static final field containing a non-primitive values which is 
> not a real constant
> (it can be modified by reflection).
I don't think final fields can be modified via reflection. An 
IllegalAccessException with the message "field is final" is thrown at 
the end of Reflection::resolve_field in reflection.cpp.

- thomas
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to