Eclipse has stopped claiming the need to declare the serial default Version ID. in the serialized classes

Asked

Viewed 28 times

0

Hello, using Eclipse IDE when we create a class that we inform you should implement serialization (Serializable Implements) is common for the IDE to claim the default serial Version Id.

I created a new project in the IDE and almost everything works normally in the ide, but when creating a new class and implementing serialization, the Ide no longer signals the need to create the default value.

Does anyone know how to enable in the ide that it tells the need to create the default value equal to the figure below?

inserir a descrição da imagem aqui

1 answer

0


Go to Window -> Preferences -> Java -> Compiler -> Errors/Warnings -> Potential Programing Problems. Then just locate the option "Serializable class without serialVersionUID" and select "Warning".

inserir a descrição da imagem aqui

  • Hello Felipe, I imagined that it was this but when accessing the configuration it is already this way. The funny thing is that only this project is so, the others are working.

  • @Joséluizgonzaganeto Check if the project is using specific settings for it. Right-click on the project, go to: Properties -> Java Compiler -> Errors/Warnings. If not, try right-clicking on the project and then "Validate"

  • Thanks Felipe, I think there must have been some problem in the IDE, I created a new project and migrated the files. Hugs.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.