-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
None
-
tiger
-
sparc
-
solaris_8
-
Verified
The current java.lang.reflect.Proxy implementation generates code that always invokes constructors of the java.lang primitive wrapper classes to box primitive values (to pass to InvocationHandler.invoke). Even before Tiger, this is clearly less then ideal for booleans. In Tiger, all of the java.lang primitive wrapper classes will have static factory methods for boxing values (to go along with language-level boxing support-- see 4887004) that might be implemented more efficiently than by constructing a new wrapper instance on every invocation. The j.j.r.Proxy implementation should generate code that uses these static factory methods instead of constructors, where appropriate.
- relates to
-
JDK-4887004 Add Integer Integer.valueOf(int i)
- Resolved
-
JDK-5096177 unmarshalling code should use static factory methods for primitive boxing
- Resolved
-
JDK-5096183 rmic should support a -target option
- Closed