-
Bug
-
Resolution: Not an Issue
-
P4
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
jdk 6,
jre 6,
ADDITIONAL OS VERSION INFORMATION :
Windows XP
Version 2002, service pack 3
A DESCRIPTION OF THE PROBLEM :
This problem comes while working on network management application.
where I have several network element added under tree and some Ne have name in Norwegian character too. when try to short it by enter any Norwegian char in the textbox which gives sorted list according to entered character.
But when try to search character 'å ' then it stuck on character ' æ '.
There is code block in Step to reproduce point.
Inside IF statement there is two string is compared By compareTo() method. First string is "å " and second string is " æ", here it gives value "<= 0" which made if statement true while it is not so.
It works in all other Norwegian character.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In below code instance having following name string name: and typed is a string which is value entered by user for sorting by entered string.
a, aa, æ, ææ, å, åå, åæ, æå, øå, øø
Enumeration instances = current.children();
while (instances.hasMoreElements()) {
current = (ModelTreeNode) instances.nextElement();
if (typed.compareTo(current.getPresentationName()) <= 0) {
break;
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected result is that if we type å then it must go inside if block when value å comest as first letter in the instances strings but it went inside if block when character æ comes.
It works properly for other norwegian character except ' å '.
ACTUAL -
Like if you type 'øø' then it will go inside if block when 'ø ' comes as a first charcter in instances.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error .
REPRODUCIBILITY :
This bug can be reproduced always.
jdk 6,
jre 6,
ADDITIONAL OS VERSION INFORMATION :
Windows XP
Version 2002, service pack 3
A DESCRIPTION OF THE PROBLEM :
This problem comes while working on network management application.
where I have several network element added under tree and some Ne have name in Norwegian character too. when try to short it by enter any Norwegian char in the textbox which gives sorted list according to entered character.
But when try to search character 'å ' then it stuck on character ' æ '.
There is code block in Step to reproduce point.
Inside IF statement there is two string is compared By compareTo() method. First string is "å " and second string is " æ", here it gives value "<= 0" which made if statement true while it is not so.
It works in all other Norwegian character.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
In below code instance having following name string name: and typed is a string which is value entered by user for sorting by entered string.
a, aa, æ, ææ, å, åå, åæ, æå, øå, øø
Enumeration instances = current.children();
while (instances.hasMoreElements()) {
current = (ModelTreeNode) instances.nextElement();
if (typed.compareTo(current.getPresentationName()) <= 0) {
break;
}
}
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expected result is that if we type å then it must go inside if block when value å comest as first letter in the instances strings but it went inside if block when character æ comes.
It works properly for other norwegian character except ' å '.
ACTUAL -
Like if you type 'øø' then it will go inside if block when 'ø ' comes as a first charcter in instances.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error .
REPRODUCIBILITY :
This bug can be reproduced always.