db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Hillegas (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-6128) Examine Derby classes to determine if we need to add serialVersionUID to any of them
Date Fri, 22 Mar 2013 18:59:15 GMT

     [ https://issues.apache.org/jira/browse/DERBY-6128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Hillegas updated DERBY-6128:
---------------------------------

    Attachment: SerializableLister.java

Attaching SerializableLister.java. This program lists out all Derby classes which implement
Serializable but don't implement Formatable and which DON'T have explicitly declared serialVersionUIDs.
I think that the Formatable classes should be ok because Derby takes responsibility for encoding
their type ids.

Here is the output of this program. There are some false positives in here, but this is a
small enough list that it should be easy to go through them and determine if we need to add
serialVersionUIDs to any of them.

org.apache.derby.iapi.error.PassThroughException
org.apache.derby.iapi.error.ShutdownException
org.apache.derby.iapi.error.StandardException$BadMessageArgumentException
org.apache.derby.iapi.error.StandardException
org.apache.derby.iapi.services.cache.ClassSizeCatalog
org.apache.derby.iapi.services.classfile.Attributes
org.apache.derby.iapi.services.io.DerbyIOException
org.apache.derby.iapi.services.sanity.AssertFailure
org.apache.derby.iapi.sql.depend.ProviderList
org.apache.derby.iapi.sql.dictionary.ColumnDescriptorList
org.apache.derby.iapi.sql.dictionary.ConglomerateDescriptorList
org.apache.derby.iapi.sql.dictionary.ConstraintDescriptorList
org.apache.derby.iapi.sql.dictionary.GenericDescriptorList
org.apache.derby.iapi.util.DoubleProperties
org.apache.derby.iapi.util.InterruptDetectedException
org.apache.derby.impl.io.DirFile
org.apache.derby.impl.io.DirFile4
org.apache.derby.impl.jdbc.EmbedSQLException
org.apache.derby.impl.services.monitor.UpdateServiceProperties
org.apache.derby.impl.sql.compile.ParseException
org.apache.derby.impl.sql.compile.SQLParser$LookaheadSuccess
org.apache.derby.impl.sql.compile.TokenMgrError
org.apache.derby.impl.store.access.btree.WaitError
org.apache.derby.impl.store.raw.data.AllocExtent
org.apache.derby.impl.store.raw.data.LongColumnException
org.apache.derby.impl.store.raw.data.NoSpaceOnPage
org.apache.derby.impl.store.replication.buffer.LogBufferFullException
org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource40
org.apache.derby.security.DatabasePermission
org.apache.derby.shared.common.sanity.AssertFailure
org.apache.derby.vti.Restriction$AND
org.apache.derby.vti.Restriction$ColumnQualifier
org.apache.derby.vti.Restriction$OR
org.apache.derby.client.am.ColumnTypeConversionException
org.apache.derby.client.am.DisconnectException
org.apache.derby.client.am.OutsideRangeForDataTypeException
org.apache.derby.client.am.SqlException
org.apache.derby.client.am.SqlWarning
org.apache.derby.client.am.XaException
org.apache.derby.client.am.stmtcache.JDBCStatementCache$BoundedLinkedHashMap
org.apache.derby.client.net.CodePointNameTable
Caught exception while trying to inspect org.apache.derby.iapi.reference.DRDAConstants: sealing
violation: package org.apache.derby.iapi.reference is sealed
Caught exception while trying to inspect org.apache.derby.shared.common.error.ExceptionUtil:
sealing violation: package org.apache.derby.shared.common.error is sealed
Caught exception while trying to inspect org.apache.derby.shared.common.reference.Attribute:
sealing violation: package org.apache.derby.shared.common.reference is sealed
org.apache.derby.shared.common.sanity.AssertFailure
org.apache.derby.drda.NetServlet
org.apache.derby.impl.drda.CodePointNameTable
org.apache.derby.impl.drda.DRDAProtocolException
org.apache.derby.impl.drda.DRDASocketTimeoutException
org.apache.derby.impl.tools.ij.mtGrammar$LookaheadSuccess
org.apache.derbyTesting.functionTests.harness.SimpleDiff$DiffBuffer
org.apache.derbyTesting.functionTests.tests.jdbcapi.SetQueryTimeoutTest$TestFailedException
org.apache.derbyTesting.functionTests.tests.jdbcapi.cdsXid
org.apache.derbyTesting.functionTests.tests.lang.FakeByteArray
org.apache.derbyTesting.functionTests.tests.lang.FullName
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$BigDecimalMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$BigintMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$BooleanMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$DoubleMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$FullNameMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$IntMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$RealMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$ShortMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode$StringMode
org.apache.derbyTesting.functionTests.tests.lang.GenericMode
org.apache.derbyTesting.functionTests.tests.lang.IntArray
org.apache.derbyTesting.functionTests.tests.lang.LobMode$BinaryMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode$BlobMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode$ClobMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode$DateMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode$TimeMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode$TimestampMode
org.apache.derbyTesting.functionTests.tests.lang.LobMode
org.apache.derbyTesting.functionTests.tests.lang.LongMagnitude
org.apache.derbyTesting.functionTests.tests.lang.ModeAggregate$Accumulator
org.apache.derbyTesting.functionTests.tests.lang.ModeAggregate
org.apache.derbyTesting.functionTests.tests.lang.Price
org.apache.derbyTesting.functionTests.util.ManyMethods
org.apache.derbyTesting.functionTests.util.ProtocolTestGrammar
org.apache.derbyTesting.functionTests.util.ShortHolder
org.apache.derbyTesting.functionTests.util.SubClass
org.apache.derbyTesting.functionTests.util.SubInterfaceClass
org.apache.derbyTesting.functionTests.util.SubSubClass
org.apache.derbyTesting.junit.utilXid
org.apache.derbyTesting.unitTests.harness.T_Fail
org.apache.derbyTesting.unitTests.services.T_CacheException
org.apache.derbyTesting.unitTests.services.T_StandardException
org.apache.derby.impl.tools.ij.ParseException
org.apache.derby.impl.tools.ij.TokenMgrError
org.apache.derby.impl.tools.ij.ij$LookaheadSuccess
org.apache.derby.impl.tools.ij.ijException
org.apache.derby.impl.tools.ij.ijFatalException
org.apache.derby.impl.tools.ij.ijTokenException
org.apache.derby.impl.tools.ij.ijXid

                
> Examine Derby classes to determine if we need to add serialVersionUID to any of them
> ------------------------------------------------------------------------------------
>
>                 Key: DERBY-6128
>                 URL: https://issues.apache.org/jira/browse/DERBY-6128
>             Project: Derby
>          Issue Type: Task
>            Reporter: Rick Hillegas
>         Attachments: SerializableLister.java
>
>
> The discussion on DERBY-6124 has raised the possibility that we may need to add serialVersionUIDs
to some serializable Derby classes. Without the serialVersionUIDs, Derby may encounter deserialization
errors on objects which were serialized by one version of Derby or the JVM and then deserialized
by another version of Derby or the JVM.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message