JDK-6362451 : the string returned by toString() shows the bridge methods as having the volatile modificator
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0u6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2005-12-13
  • Updated: 2011-02-16
  • Resolved: 2005-12-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.0Resolved
Related Reports
Duplicate :  
Description
The string returned by toString() shows the bridge methods as having the volatile modificator.

Run the following code:

import java.lang.reflect.Method;

public class BridgeMethodTest {

    public static void main(String[]  args) throws ClassNotFoundException {
        Class cl = Class.forName("java.lang.String");
        for(Method m : cl.getDeclaredMethods()) {
            if (m.isBridge())
                System.out.println(m);
        }
    }
}

The result is:
	public volatile int java.lang.String.compareTo(java.lang.Object)