Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336826

InvalidClassExceptions caused by serialversionuid checks

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      The problem is ObjectStreamClass validates serialversionuidand and there is no way to disable it.

      In our environment, it often means we have an offline window when release to production.
      Even though we use Jackson and mixin classes as much as possible there are always external libs which makes it unable to use json / mixin. This time it’s a spring security upgrade that causes problems in hazelcast spring sessions. Therefore we need to upgrade all our services at once, including hazelcast server, while we tested there are not even breaking changes. The only breaking change is that spring security changes serialversionuid.

      Please give the option to go to prod and disable this check and to use it only with build time or with written tests. This way we can for example upgrade 1 service to new version classes and then the next, etc.




            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: