eclipse.jdt.ls icon indicating copy to clipboard operation
eclipse.jdt.ls copied to clipboard

The "Add generated serial version ID" quick fix is not working properly if the file is not saved

Open vasiltabakov opened this issue 6 years ago • 2 comments

It should generate a unique-to-the-project ID, but it always generates one with value 1L: 2019-07-28_15-06-21

vasiltabakov avatar Jul 28 '19 12:07 vasiltabakov

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

snjeza avatar Aug 12 '19 17:08 snjeza

the error no longer shows on the anonymous classes, but the quickfix still generates 1L if the file is not saved.

fbricon avatar Oct 28 '25 17:10 fbricon