Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » serialVersionUID bug
serialVersionUID bug [message #28836] Thu, 08 May 2003 14:37 Go to next message
Eclipse UserFriend
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?
Re: serialVersionUID bug [message #28840 is a reply to message #28836] Thu, 08 May 2003 15:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Olivier_Thomann.ca.ibm.comNOSPAM

On Thu, 8 May 2003 20:37:41 +0200, "Hans Schwäbli"
<hans.schwaebli@schwaebli.com> wrote:
>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?
Enter a bug report against JDT/Core.
Provide a test case and your compiler settings.
We will investigate.
--
Olivier
Re: serialVersionUID bug [message #29225 is a reply to message #28836] Thu, 08 May 2003 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

Hans Schwäbli wrote:

> 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?

Skip the compilation step in the Ant script and have it use the classes
out of the bin directory for deployment.
Re: serialVersionUID bug [message #29263 is a reply to message #29225] Thu, 08 May 2003 18:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hans.schwaebli.schwaebli.com

I thought about this too. I cannot decide this by myself since it is a
decision in our programer team.

I will try to create a test and file the bug so that it can be fixed by the
Eclipse programers.


"Dave Wegener" <wegener@cboenospam.com> wrote in message
news:b9ejbk$mpd$1@rogue.oti.com...
> Hans Schw
Re: serialVersionUID bug [message #29339 is a reply to message #28836] Thu, 08 May 2003 18:23 Go to previous message
Eclipse UserFriend
Originally posted by: jed_anderson.us.ibm.com

Hans,

Perhaps following links are of some interest to you.

http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/c lass.doc6.html#4100
http://c2.com/ppr/wiki/JavaIdioms/AlwaysDeclareSerialVersion Uid.html

jkca
Previous Topic:Eclipse 2.1.1 problem
Next Topic:newbie - mac os x speed issues
Goto Forum:
  


Current Time: Sat Jul 12 16:20:29 EDT 2025

Powered by FUDForum. Page generated in 0.04974 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top