@CallerSensitive in Java SE 7u25

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 25 10:24:02 UTC 2013


On 25/06/2013 11:06, Peter Levart wrote:
> :
>
> It seems that with 7u25 the result is "shifted"  for one calling 
> frame. Is that behavior change intentional to encourage people to "get 
> off that wagon"?

Right, there is an additional frame that means that getClassClass is out 
by one. This change was unintentional (meaning a bug) and Mandy has a 
fix coming in 7u40 for this, the discussion has been on jdk7u-dev rather 
than here:

http://mail.openjdk.java.net/pipermail/jdk7u-dev/2013-June/006791.html

As regards getting people off sun.reflect.Reflection.getCallerClass(int) 
then the proposal is aggressive, you can read the details but it 
essentially means it will be disabled by default in 7u40.

-Alan.




More information about the core-libs-dev mailing list