serialVersionUID bug [message #28836] |
Thu, 08 May 2003 14:37  |
Eclipse User |
|
|
|
Originally posted by: hans.schwaebli.schwaebli.com
I have a serialVersionUID problem with Eclipse 2.1. The former version 2.0.2
does not cause these problems.
PLEASE be aware of this: I DON'T want any compatibility of Java versions or
compiler versions concerning byte code. We use only one Java version and
only one compiler version (the one of Eclipse).
The bug comes somehow from Eclipse 2.1. When it compiles a class it has a
file size of lets say 1510 kb. When I deploy with using Ant scripts and
Eclipse compiler (JDTsomethingdontremember), the compiled class does have a
different file size then the one in the bin directory. This is very strange.
Classes compiled with Eclipse 2.1 have a different file size than classes
compiled with Ant!!! That is causing the serialVersionUID conflicts!
I don't want to use private static final long serialVersionUID = 1234; Noone
in our company accepts this bad workaround.
And as I said: This problem ONLY happens with Eclipse 2.1. It doesn't happen
with 2.0.2.
What solution do you provide for me?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04974 seconds