JDK-6749308 : java.io, java.lang, java.util exception classes don't specify serialVersionUID
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-09-17
  • Updated: 2017-05-16
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b38Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Javadoc doesn't specify the serialVersionUID for serializable Exception classes in the java.io, java.lang, java.util packages. 

According to RFE 4525039 the serialVersionUID should be included in the Serialized Form generated for each class.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/tl/jdk/rev/025fdbd9090b
24-09-2008

EVALUATION Explicitly declare private static final long field containing default serialVersionUID. The serialVersionUID of each of the exceptions was determined by serialver, and verified as unchanged since its introduction. java.io CharConversionException -8680016352018427031L SyncFailedException -2353342684412443330L UTFDataFormatException 420743449228280612L InterruptedIOException 4020568460727500567L UnsupportedEncodingException -4274276298326136670L EOFException 6433858223774886977L FileNotFoundException -897856973823710492L java.util InputMismatchException 8811230760997066428L ConcurrentModificationException -3666751008965953603L NoSuchElementException 6769829250639411880L TooManyListenersException 5074640544770687831L EmptyStackException 5084686378493302095L java.util.jar JarException 7159778400963954473L java.util.regex PatternSyntaxException -3864639126226059218L java.util.zip ZipException 8000196834066748623L DataFormatException 2219632870893641452L java.lang AbstractMethodError -1654391082989018462L ClassCircularityError 1054362542914539689L EnumConstantNotPresentException -6046998521960521108L IllegalThreadStateException -7626246362397460174L InstantiationError -4885810657349421204L NegativeArraySizeException -8960118058596991861L NoSuchFieldError -3456430195886129035L TypeNotPresentException -5101214195716534496L UnknownError 2524784860676771849L UnsupportedClassVersionError -7123279212883497373L VerifyError 7001962396098498785L AssertionError -5013299493970297370L ClassFormatError -8420114879011949195L UnsatisfiedLinkError -4019343241616879428L CloneNotSupportedException 5195511250079656443L IllegalAccessError -8988904074992417891L ArrayIndexOutOfBoundsException -5116101128118950844L InstantiationException -8441929162975509110L NoSuchFieldException -6143714805279938260L InternalError -9062593416125562365L IllegalAccessException 6616958222490762034L IndexOutOfBoundsException 234122996006267687L StringIndexOutOfBoundsException -6762910422159637258L NoSuchMethodException 5034388446362600923L InterruptedException 6700697376100628473L IncompatibleClassChangeError -4914975503642802119L ArithmeticException 2256477558314496007L NullPointerException 5162710183389028792L IllegalMonitorStateException 3713306369498869069L StackOverflowError 8609175038441759607L OutOfMemoryError 8228564086184010517L ArrayStoreException -4522193890499838241L ClassCastException -9223365651070458532L LinkageError 3579600108157160122L NoClassDefFoundError 9095859863287012458L ThreadDeath -4417128565033088268L NoSuchMethodError -3765521442372831335L java.lang.annotation AnnotationFormatError -4256701562333669892L IncompleteAnnotationException 8445097402741811912L AnnotationTypeMismatchException 8125925355765570191L java.lang.instrument IllegalClassFormatException -3841736710924794009L UnmodifiableClassException 1716652643585309178L java.lang.management ManagementPermission 1897496590799378737L java.lang.reflect GenericSignatureFormatError 6709919147137911034L MalformedParameterizedTypeException -5696557788586220964L
17-09-2008