Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-01-2007
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 120
eclipse gives warning about slice generated classes

I don't know if this is an issue or not, but I wanted to share.

I have a slice exception that looks like this:

exception CommError {
int err;
};

I've run slice2java on that particular slice file and generated the corresponding java files. When I import it into eclipse, it gives me a warning on the CommError.java file:

"The serializable class CommError does not declare a static final serialVersionUID field of type long."

The program compiles fine and runs great, but I didn't see this listed in the forums anywhere so I thought I'd share in case it might present any issues.
__________________
Caleb Tennis
Analytical Engineering, Inc.
http://www.aei-tech.com
Project: Our facility infrastructure heavily utilizes Ice

Gentoo ebuild maintainer for Ice, IceRuby, etc.
Reply With Quote
  #2 (permalink)  
Old 05-02-2007
mefoster mefoster is offline
Registered User
 
Name: Mary Ellen Foster
Organization: Technical University of Munich
Project: JAST human-robot dialogue system
 
Join Date: Jun 2006
Posts: 78
That warning is enabled by default in Eclipse, but I almost always disable it because I don't generally use serialization and don't care if the classes I use do or do not have a serialVersionUID. If you go into the preferences, under Java - Errors/Warnings - Potential programming problems you can change the value for "Serializable class without serialVersionUID" from "Warning" to "Ignore".

Possibly for the Ice-generated classes this is important.
__________________
Mary Ellen Foster
Technical University of Munich
JAST human-robot dialogue system
Maintainer of Fedora Ice packages
Reply With Quote
  #3 (permalink)  
Old 05-02-2007
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 120
Thank you very much for the tip, Mary Ellen.
__________________
Caleb Tennis
Analytical Engineering, Inc.
http://www.aei-tech.com
Project: Our facility infrastructure heavily utilizes Ice

Gentoo ebuild maintainer for Ice, IceRuby, etc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Helper Classes not Generated zhi Help Center 5 01-04-2007 08:18 AM
Eclipse / ICE plug-in and ECF (Eclipse Communications Framework) conradbeaulieu Comments 0 08-25-2005 08:34 PM
generated C# classes don't have constructors with arguments for fields kovacm Bug Reports 1 08-07-2005 08:00 PM
C#: Attributes with Ice generated classes and structs DeepDiver Help Center 2 07-23-2005 03:16 AM
c# implicit type coversion for Ice generated classes/structs DeepDiver Help Center 1 01-25-2005 08:30 AM


All times are GMT -4. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.