Community
Participate
Working Groups
This request is a follow-up to bug 498752. Although the raw type of the property can always be computed from the type information already provided by the property, it would be more efficient and type-safe to store it in the property object itself, similarly to what Guice's TypeLiteral does. The raw type of the property could then be used as follows: Property<T> p = ... Object o = ... Class<T> clazz = p.getRawType(); if (p.getRawType().isInstance(o)) ... T t = p.getRawType().cast(o);
Pushed to master: http://git.eclipse.org/c/handly/org.eclipse.handly.git/commit/?id=06ef93d6ba3373f417f7ebf73a46edf9b65d213f