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

ft-lambda: handle generic types #2

Open
lalmeras opened this issue Jan 25, 2018 · 0 comments
Open

ft-lambda: handle generic types #2

lalmeras opened this issue Jan 25, 2018 · 0 comments

Comments

@lalmeras
Copy link
Member

Current behavior: when target type is generic, we use plain old inner binding classes.

We should move to lambda expressions.

Two cases must be handled:

  • raw type; binding to a private Map field; for example
  • anonymous constrained type; binding to a private Map<? extends K, V> or private Map<K, ? extends K> field or private Map<? extends K, ? extends V> field
  • anonymous unconstrained type; binding to a private Map<?, V> or private Map<K, ?> field or private Map<?, ?> field

For raw type, we need to build a custom TypeRawBindingPath<R, P, T> extends AbstractBinding<R, P, T, Type> as a binding base class.

Not sure if constrained and unconstrained types are really different cases.

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

No branches or pull requests

1 participant