JDK-5012835 : serialVersionUID not private in java.util and java.text
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 1.4.2_03,5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,solaris_8
  • CPU: generic
  • Submitted: 2004-03-12
  • Updated: 2017-02-10
Related Reports
Duplicate :  
Relates :  
Description
serialization spec requires serialVersionUID to be private, but the one
appearing in java.util.Locale is default protection.

In java.util:

Calendar.java:851:    static final long       serialVersionUID = -1807547505821590642L;
GregorianCalendar.java:450:    static final long serialVersionUID = -8125100834729963327L;
Locale.java:251:    static final long serialVersionUID = 9149081749638150636L;
SimpleTimeZone.java:1219:    static final long serialVersionUID = -403250971215465050L;
TimeZone.java:150:    static final long serialVersionUID = 3581463369166924961L;

In java.text:

DateFormatSymbols.java:202:    static final long serialVersionUID = -5987973545549424702L;
DecimalFormat.java:3172:    static final long serialVersionUID = 864413376551465018L;
DecimalFormatSymbols.java:629:    static final long serialVersionUID = 5772796243397350300L;
NumberFormat.java:926:    static final long serialVersionUID = -2308460125733713944L;
SimpleDateFormat.java:319:    static final long serialVersionUID = 4774881970558875024L;

Comments
EVALUATION The serialver utility doesn't produce a private field. In most cases the serialver output is copied and pasted to the source code. ###@###.### 2004-03-15 There is no requirement that these be private. ###@###.### 2004-03-15 In email of 3/19/04, ###@###.### recommends that this still be fixed eventually. ###@###.### 2004-03-24
15-03-2004