Skip to content
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

Completion of nested property of generic source property #83

Open
daniel-shuy opened this issue Sep 10, 2021 · 0 comments
Open

Completion of nested property of generic source property #83

daniel-shuy opened this issue Sep 10, 2021 · 0 comments

Comments

@daniel-shuy
Copy link

daniel-shuy commented Sep 10, 2021

Example Source class (Lombok used for brevity):

import org.geolatte.geom.G2D;
import org.geolatte.geom.Point;

@Getter
@Setter
public class Location {
    private Point<G2D> coordinates;

    // ...
}

eg. when attempting to map the latitude of coordinates:

@Mapping(source = "coordinates.position.lat", target = "latitude")

Point#getPosition() returns the type argument, in this case G2D, but the plugin infers it as P (the type parameter), and hence fails to autocomplete the G2D#getLat() property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant