New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor: warning in Spring Tools with Lombok on ConfigurationProperties #17650
Comments
Thanks for the report but I don't understand how Spring Tool Suite is related to the problem you are reporting. My best guess is that the Eclipse compiler has yet another subtle difference with the regular compiler that Maven uses (i.e. guessing you don't get this warning when building the project on the command line but it would be nice if you could clarify that). We need more information to assess the problem. The full stacktrace for a start, a small project we can import in STS ourselves that reproduces the problem would be ideal. |
Hi, Thanks for your feedback. I thought it was related to STS, because the code that generates the warning message is in STS codebase, but indeed, it might come from Eclipse 😕 I have created a project that reproduces the issue: https://github.com/cyril-gambis/demo-bug When I open the "ApplicationProperties" class, and change something and save, I have a warning that appears in Eclipse: Thanks, |
Thanks for the sample, @cyril-gambis. I've managed to reproduce the problem, but have only been able to do so when running Eclipse on JDK 11. Thus far, it does not appear to occur when using JDK 8. Unfortunately,
This is the result of calling |
I've opened #17974 to improve the diagnostics. The relevant code in String moduleQualifiedName = moduleName != null ? moduleName+':'+qualifiedTypeName : qualifiedTypeName;
if (this.initialTypeNames != null && this.initialTypeNames.includes(moduleQualifiedName)) {
if (this.isIncrementalBuild)
// catch the case that a type inside a source file has been renamed but other class files are looking for it
throw new AbortCompilation(true, new AbortIncrementalBuildException(qualifiedTypeName));
return null; // looking for a file which we know was provided at the beginning of the compilation
} The mention of modules ties in with the problem not occurring on JDK 8 where this is no module system. As far as I can tell Boot's annotation processor isn't doing anything wrong here. When I was modifying @cyril-gambis Unfortunately, I don't think there's anything we can do to fix this in Spring Boot. Can you please open an Eclipse bug and comment here with a link to it so that we can follow along and comment as needed. Note that this may be a Lombok bug as I could not reproduce the problem on any JDK without Lombok. For the problem to occur at least |
Hi,
I am using Lombok 1.18.8 with Spring Tool Suite 4 (Full Eclipse environment) version 4.3.1 RELEASE.
I have the following class:
Previously, with Spring Tool Suite 4.0.2, it worked fine without any issue. But with the version 4.3.1 of STS, I get a strange warning on the definition of class "Auth": "Failed to generated type descriptor for com....ApplicationProperties.Auth".
Since its just a warning, I can just ignore it; but maybe there are some impacts I am not aware of?
I found that the code that generate this warning is here: https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java
Thanks,
Cyril
The text was updated successfully, but these errors were encountered: