You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Java file with class A is definition of an annotation that is annotated with @Configuration
Java file with class B annotated with A has bean definitions.
Once @Configuration is removed from A and saved it is expected that B has a warning about missing @Configuration. However, nothing happens. Even after editing B.
The issue is that classpath is considered not to be changed. Therefore java parser isn't reset and still based on old implementation of everything. If project is closed and re-opened (or IDE restarted or reloaded) then B class would have proper warning.
@martinlippert yes, but I suspect that JDT Java reconciling would be suffering the same issue. Don't think we have examples of JDT reconciling of the same caliber... It is only SpEL expressions validation that looks at Spring Property Index.
@BoykoAlex Sounds to me like (in the longer run) we would have to keep record of cross-references (when reconciling, when scanning for symbols, etc.), so that we can identify the elements that we need to re-scan if something changes beyond the changed file itself.
Let's think about this for the 4.19.0 release cycle (at least on the spike level).
Our java parsers gather classpath as JARs and output folders. Parsing each source uses as classpath JARs + output folder content (.class files) rather than sources (.java files)... Therefore, i think we may need a new event for output folder change or perhaps include output folder change in the classpath changed event...
4.19 sounds good. Would need a bit brain storming on how to accomplish this without degrading performance much...
Activity
martinlippert commentedon Mar 3, 2023
We are talking about the OpenRewrite based reconciling here, correct?
BoykoAlex commentedon Mar 3, 2023
@martinlippert yes, but I suspect that JDT Java reconciling would be suffering the same issue. Don't think we have examples of JDT reconciling of the same caliber... It is only SpEL expressions validation that looks at Spring Property Index.
martinlippert commentedon Mar 3, 2023
@BoykoAlex Sounds to me like (in the longer run) we would have to keep record of cross-references (when reconciling, when scanning for symbols, etc.), so that we can identify the elements that we need to re-scan if something changes beyond the changed file itself.
Let's think about this for the 4.19.0 release cycle (at least on the spike level).
BoykoAlex commentedon Mar 3, 2023
Our java parsers gather classpath as JARs and output folders. Parsing each source uses as classpath JARs + output folder content (.class files) rather than sources (.java files)... Therefore, i think we may need a new event for output folder change or perhaps include output folder change in the classpath changed event...
4.19 sounds good. Would need a bit brain storming on how to accomplish this without degrading performance much...
BoykoAlex commentedon May 18, 2023
As a trial fix pushed this in: 8a64655
BoykoAlex commentedon Aug 1, 2023
Likely fixed with 4181d56