JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a ... In the code for the Inner constructor, you use an accessor method to ...
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a ... In the code for the Inner constructor, you use an accessor method to ...
Java Management Service, available to all users, can help you find vulnerable Java versions in your systems. Java SE Subscribers and customers running in Oracle ...
JDK-6710498 : MXBeans trip over reflection bug when constructor has arrays and generics as parameters
5.1.11 defines _string conversion_ for primitive types in terms of a wrapper class constructor call followed by a 'toString' call. The wrapper class constructors are now deprecated for removal, and JLS should not depend on them.
For example, command line arguments and environment variables are presented to the user as if they were strings, but the typical content is filenames. Half-hearted attempts to fix this bug would leave us with the ability to access the underlying byte array only in some contexts.
That way the benefits of using such methods would be encouraged. Maybe have the static factory methods grouped after the constructors in the javadoc.For example, "static Integer Integer.valueOf(String)" fits this pattern and is indeed a static factory.
File an issue Hitting a snag with your Java application and can't find anything in search? Have a small enhancement suggestion for the JDK? File a new issue!
Oracle Java is the #1 programming language and development platform. It reduces costs, shortens development timeframes, drives innovation, and improves application services.