JDK-4663105 : improper use of sun.tools.java.RuntimeConstants in sun.misc.ProxyGenerator
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2002-04-04
  • Updated: 2003-08-20
  • Resolved: 2003-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 tigerFixed
Related Reports
Relates :  
Description
The "old compiler" sun.tools.javac and associated classes will be removed
from J2SE for Tiger, so all references to its classes will have to be
excised.  sun.misc.ProxyGenerator uses sun.tools.java.RuntimeConstants,
which will not work in 1.5.  This code was introduced in 1.3, when the
old compiler became obsolete.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b15 VERIFIED IN: tiger
14-06-2004

EVALUATION Yup. sun.misc.ProxyGenerator just uses sun.tools.java.RuntimeConstants to steal a few of its compile-time constant values. (There's no runtime depencency-- obviously, because sun.tools.* classes aren't even in rt.jar. In fact, the concern expressed near the beginning of ProxyGenerator about javac adding a CONSTANT_Class entry for sun/tools/java/RuntimeConstants is not even correct, because it was describing behavior of the old compiler.) The expedient solution here is to just copy the needed constants directly into ProxyGenerator, unless there is a good alternate place to get them from in our build (none currently that I know of). ###@###.### 2002-04-04 Fixed along with 4633413 and other friends (will be integrated through the RMI workspace). ###@###.### 2003-08-05
04-04-2002