Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 376458

Summary: [DBCS4.2] AIX 7, Java class containing DBCS methods are not correctly sorted by Sort Member function
Product: [Eclipse Project] JDT Reporter: Harendra <harendra>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: camle, daniel_megert, kennoji
Version: 3.8   
Target Milestone: ---   
Hardware: Other   
OS: other   
Whiteboard:
Attachments:
Description Flags
Example of the class file containing DBCS methods and fields. none

Description Harendra CLA 2012-04-11 03:27:08 EDT
Build Identifier: I20120321

JVM:JRE 1.7.0 IBM AIX build pap3270-20110827_01
Locale: Japanese, SJIS

When the Java class contains DBCS methods or fields, Sort members (Source->Sort Members) does not correctly sort the methods and fields. This function is working properly for SBCS.

Reproducible: Always

Steps to Reproduce:
1. Create a Java Class containing DBCS methods and fields (may use the attached JavaFile)
2. Go to Source->Sort Members.

Expected Result:
The methods and fields should be sorted correctly.
Actual Result:
The methods and fields are not sorted correctly.
Comment 1 Harendra CLA 2012-04-11 03:29:31 EDT
Created attachment 213833 [details]
Example of the class file containing DBCS methods and fields.

Example of the class file containing DBCS methods and fields. The file is encoded in Shift-JIS.
Comment 2 Dani Megert CLA 2012-04-11 08:38:25 EDT
(In reply to comment #0)
> Expected Result:
> The methods and fields should be sorted correctly.
> Actual Result:
> The methods and fields are not sorted correctly.

Please tell us what's correct.
Comment 3 Harendra CLA 2012-04-11 21:48:07 EDT
@Dani
Hi it appears I made a user error. I saw main() method appear before get() method that is why I got suspicious. As I looked into it again it appears that Static methods and fields are clumped together, and are ranked higher in the order which is why main came before non static get. I marked this bug invalid, if this result is not consistent with the specification you may open it again. Sorry for taking your time.
Comment 4 Dani Megert CLA 2012-04-12 02:01:59 EDT
> Sorry for taking your time.

np. Thanks for the feedback.