Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6760226
Votes 0
Synopsis test/tools/javap/T6622260.java fails with specific locale settings
Category java:javap
Reported Against
Release Fixed 7(b39)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 16-OCT-2008
Description
It seems that the test ensures that no '-' char is present in the output generated by javap. My output is:

Classfile /media/data/ws/jdk7/6735840/build/jtreg/javap/work/scratch/Test.class
Last modified 26-Aug-2008; size 362 bytes
MD5 checksum e8b70997e5670277a49b88b05c096b88
Compiled from "Test.java"
class Test extends java.lang.Object
SourceFile: "Test.java"
Deprecated: true
RuntimeVisibleAnnotations:    0: #15()
NonstandardAttribute: length = 0x8
[...]



That is, a '-' is present at the very beginning of the output, as part of the date format DD-MM-YYYY. I think this failure is trivial, that is, the javap output is ok (as it doesn't contain any other '-' signs); I see that you already skip '-' chars that might be contained in the classname, perhaps the same should be done for the date format (the test should only look into the 'true' javap output). It's possible that you didn't see the problem as you use a different locale.
Posted Date : 2008-10-16 14:48:51.0
Work Around
N/A
Evaluation
'-' chars at the beginning of the output should be ignored by the test.
Posted Date : 2008-10-16 14:48:51.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang