Results for “java method class object string code example python site:bugs.java.com problem”
bugs.java.com
Bug ID: JDK-8030126 (ann) Unnecessary String allocation for...
An example enterprise application using web services and annotations showed there is one annotation service namespace and element string duplicated 14,000 times. If we were to avoid duplicating this single string for the service type, we would save 3MB.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
bugs.java.com
Bug ID: JDK-4287725 (reflect) Allow subclasses of stated argument...
The same problem occurs with Class.getMethod, Class.getDeclaredMethod, Class.getConstructor, and Class.getDeclaredConstructor. Bug 4651775 contains a request to specify the meaning of "match" in the javadoc for these methods.