Results for “java function error example 1 code site:bugs.java.com python”
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.
bugs.java.com
Bug ID: JDK-8214976 Warn about uses of functions replaced for...
For example, if a function is natively available everywhere but with different semantics, it is all too easy to call it while failing to have a test that hits those differences.Clang 14+ has the warning (and error) attributes and -W[no-]attribute-warning, compatible with gcc.