|
|
|
|||||
|
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. |
|
|||||
|
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 |
|
|||||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |