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
Describe the bug
When a @ConfigurationProperties does not have a field that is a primitive type it will not navigate with F3.
The root and child don't navigate with F3 and get The operation is not applicable to the current selection. The grandchild works as it has fields that are primitive type.
To Reproduce
app: # no primitive type field at all
service1: # no primitive type field at all
service: # this navigates
host: 1.2.3.4
port: 5000
package com.example.demo;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "app")
public class Settings {
public static record Endpoint(String host, int port) {}
public static record Service(Endpoint service) {}
private Service service1;
public Service getService1() {
return service1;
}
public void setService1(Service service1) {
this.service1 = service1;
}
}
CAN'T navigate with F3: app, app.service1
CAN navigate with F3: app.service1.service
space88man
changed the title
spring-configuration-metadata is not navigating with F3 in STS 4.18.0
spring-configuration-metadata+Java 17 record is not navigating with F3 in STS 4.18.0
Apr 26, 2023
space88man
changed the title
spring-configuration-metadata+Java 17 record is not navigating with F3 in STS 4.18.0
spring-configuration-metadata : must have primitive type property before F3 navigation works
Apr 26, 2023
@space88man Almost forgot... Thanks very much for taking the time to investigate the issue, providing great description and assembling a test project for this issue. Much appreciated by all of us on our end. We have included you test projects with use cases in our unit tests
Describe the bug
When a
@ConfigurationProperties
does not have a field that is a primitive type it will not navigate with F3.The root and child don't navigate with F3 and get
The operation is not applicable to the current selection
. The grandchild works as it has fields that are primitive type.To Reproduce
CAN'T navigate with F3: app, app.service1
CAN navigate with F3: app.service1.service
Sample
gh-sts4-sampleV2.zip
The text was updated successfully, but these errors were encountered: