eclipse.jdt.ls
eclipse.jdt.ls copied to clipboard
The "Add generated serial version ID" quick fix is not working properly if the file is not saved
It should generate a unique-to-the-project ID, but it always generates one with value 1L:

The issue can be reproduced when a file isn't saved. It can be reproduce in Eclipse. A workaround is to save the file before call the quick fix. Related issue: https://bugs.eclipse.org/bugs/show_bug.cgi?id=343858
the error no longer shows on the anonymous classes, but the quickfix still generates 1L if the file is not saved.