RFC: Fix mistake in backport of S8010118

Andrew Hughes gnu.andrew at redhat.com
Tue Jul 16 09:48:17 PDT 2013


----- Original Message -----
> Hi,
> 
> I made a mistake when trying to backport S8010118 (Annotate jdk caller
> sensitive methods with @sun.reflect.CallerSensitive). I had assumed
> DriverManager.getCallerClass() returns the class of the caller (what
> Reflection.getCallerClass() does). But it does something completely
> different.
> 
> The attached patch fixes the mistake by introducing a new getCallerClass
> method. This is similar to what's done in 7u [1] with the new
> isDriverAllowed(Driver,Class<?>) method. This patch also ensures that
> the resulting 8010118-caller_sensitive.patch does not remove any
> getCallerClass methods.
> 
> Okay to push to HEAD?
> 
> Thanks,
> Omair
> 
> [1] http://hg.openjdk.java.net/jdk7u/jdk7u-dev/jdk/rev/d0e8dd6dd7a5
> --
> PGP Key: 66484681 (http://pgp.mit.edu/)
> Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681
> 

I guess.  I'm not really familiar with the original patch and it's
pretty difficult to understand what this one changes.
-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

PGP Key: 248BDC07 (https://keys.indymedia.org/)
Fingerprint = EC5A 1F5E C0AD 1D15 8F1F  8F91 3B96 A578 248B DC07




More information about the distro-pkg-dev mailing list