Clean Up option "Add missing serial version ID (generated)" always has exceptions [message #1850852] |
Fri, 18 March 2022 15:02 |
Todd Heidenthal Messages: 2 Registered: March 2022 |
Junior Member |
|
|
Whenever I apply the Clean Up item of "Add missing serial version ID (generated)" to a folder, it generates exceptions and doesn't modify the Java files.
Regardless of the level of the folder or package I select, the process selects the highest level folder in the project tree, other than the project itself, so selecting java or src or even com doesn't help.
As such it scans files of all types, including .xml and .html. It is these file types that are always throwing exceptions like:
"Could not write to read-only file: '/development_Java8/VTdesign/src/main/java/com/gtisoft/camdesign/camdata.xml'."
I know there are classes missing their serialVersionUID, but nothing shows up in my Perforce change list as being modified. I am guessing that the exceptions prevent normal completion.
I haven't used Eclipse for many years, so I expect that I am doing something wrong. I don't see any way to configure the generation of serialVersionUID to skip file types.
Any help is appreciated.
=====> Update
When I select a java file directly which I know is missing a serialVersionUID, nothing happens, no exception, no modification of the file. Does it only work in particular perspectives or views?
[Updated on: Fri, 18 March 2022 16:33] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03641 seconds