-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
6
-
x86
-
windows_xp
FULL PRODUCT VERSION :
java version "1.6.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta2-b74)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b74, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Home Edition
5.1.2600 Service Pack 2 Build 2600
A DESCRIPTION OF THE PROBLEM :
In the class java.util.regex.PatternSyntaxException a private static field "nl" is declared and initialized the the value of the "line.separator" system property. The value of that field is never used in the class. In the getMessage() method a new local variable with the same name and value is created and used instead.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Analyze the source of java.util.regex.PatternSyntaxException.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The private static field should be used or removed.
ACTUAL -
An unnecessary field.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.6.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta2-b74)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b74, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Home Edition
5.1.2600 Service Pack 2 Build 2600
A DESCRIPTION OF THE PROBLEM :
In the class java.util.regex.PatternSyntaxException a private static field "nl" is declared and initialized the the value of the "line.separator" system property. The value of that field is never used in the class. In the getMessage() method a new local variable with the same name and value is created and used instead.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Analyze the source of java.util.regex.PatternSyntaxException.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The private static field should be used or removed.
ACTUAL -
An unnecessary field.
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-6370438 patches to stop compiler warnings
-
- Resolved
-