[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: classpath ./ChangeLog java/lang/reflect/Proxy.j...
From: |
Michael Koch |
Subject: |
Re: classpath ./ChangeLog java/lang/reflect/Proxy.j... |
Date: |
Mon, 23 Dec 2002 15:23:43 +0100 |
User-agent: |
KMail/1.5 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Montag, 23. Dezember 2002 15:07 schrieb Eric Blake:
> Michael Koch wrote:
> > CVSROOT: /cvsroot/classpath
> > Module name: classpath
> > Changes by: Michael Koch <address@hidden> 02/12/23 03:30:29
> >
> > * java/lang/reflect/Proxy.java
> > (h): This member was never final in any jdk release.
>
> I'm not sure this change needed to be made. The field h is not
> publically accessible - it is protected within Proxy, user code
> should not extend Proxy directly, and internally created proxy
> classes never change the value of h. I thought making it final
> (like we made Integer.value final) provided more security from bad
> reflection code.
Then I wonder why SUN made it non-final ...
Integer.value is private and not in the offial API but Proxy.h is
(because its protected). We should make our implementation 100%
compatible. At least thats a goal.
Michael
- --
Homepage: http://www.worldforge.org/
GPG-key: http://konqueror.dyndns.org/~mkoch/michael.gpg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+Bxx2WSOgCCdjSDsRAn11AKCVy0ehRfMyljrAx9QIYng8aYRdEQCZAQ87
X3M9Yk8W0OuBMpUxZKFha+s=
=yT6M
-----END PGP SIGNATURE-----