JDK-6339426 : Line Feed Code can not be recognized correctly in J2SE 5.0 Doc. page
  • Type: Bug
  • Component: globalization
  • Sub-Component: translation
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-10-20
  • Updated: 2010-08-05
  • Resolved: 2006-07-25
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.0u8 b01Fixed
Related Reports
Relates :  
Description
The Statement in JDK5.0 document (japanese) seems ugly because of lack of Linefeed(or incorrect 
line feed code).

BEHAVIOR:
 Look at the section of "MX Bean ni akusesu suru houhou" and "puratto-fomu no kakuchou" in the page,
   http://java.sun.com/j2se/1.5.0/ja/docs/ja/api/java/lang/management/package-summary.html
 Sample code are shown, but that seems ugly as follows,
 
EXAMPLE :

In japanese web site, sample code st "MX Bean ni akusesu suru houhou" seems, 


---sample in Japanese web page ---
.....
2. Jikkou-chuu no kasou-mashin no puratto fo-mu MbeansServer ni setsuzokushiteiru MBeanServerConnection
wo kaisuru

  MBeanServerConnection mbs;
 // Connect to a running JVM (or itself) and get MBeanServerConnection // that has the JVM MXBeans registered in it ...
 try { // Assuming the RuntimeMXBean has been registered in mbs ObjectName oname = new ObjectName(ManagementFactory.RUNTIME_MXBEAN_NAME);     // Get standard attribute "VmVendor" String vendor = (String) mbs.getAttribute(oname, "VmVendor"); } catch (....) { // Catch the exceptions thrown by ObjectName constructor // and MBeanServer.getAttribute method ... }

However, the corresponding portion to the above in English page seems as follows.

--- sample at english page ( http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/package-summary.html )-----
....
2. Go through a MBeanServerConnection connecting to the platform MBeanServer of a running virtual machine.

   MBeanServerConnection mbs;

   // Connect to a running JVM (or itself) and get MBeanServerConnection
   // that has the JVM MXBeans registered in it
   ...

   try {
       // Assuming the RuntimeMXBean has been registered in mbs
       ObjectName oname = new ObjectName(ManagementFactory.RUNTIME_MXBEAN_NAME);
    
       // Get standard attribute "VmVendor"
       String vendor = (String) mbs.getAttribute(oname, "VmVendor");
   } catch (....) {
       // Catch the exceptions thrown by ObjectName constructor
       // and MBeanServer.getAttribute method
       ...
   }

Comments
EVALUATION Fixed.
25-07-2006

EVALUATION This fill be fixed in 5.0 web document. Have no plan to provide fix in download doc bundle.
05-04-2006