I’m having a problem with Eclipse (2023-03 and earlier versions) and its compiler. I have a project here that's configured correctly (in terms of build tools, source paths, etc.), but Eclipse has a problem with one of the files, and yes, the directory the source code of this specific file is in does indeed not match the declared package inside the file.
However, in this specific instance it is necessary to do that, and Java itself doesn't tell you anywhere that the source code for class a.b.c.D
has to be in directory a/b/c
.
How do I disable the compiler error?