VarAccessor - VarHandle alternative?
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Mon Aug 10 12:02:21 UTC 2015
Hi Peter,
thanks for the report; this should have been fixed now.
Maurizio
On 08/08/15 01:28, Peter Levart wrote:
> While playing with this, I noticed a javac inconsistency. The
> following diamond:
>
> public abstract class VarAccessor<T, any V> {
>
> private static final Map<Class<?>, BiFunction<Class<?>, String,
> VarAccessor<?, any>>> factories
> = new HashMap<>();
>
> ... does not work. I had to re-specify the full types in the HashMap
> constructor:
>
> private static final Map<Class<?>, BiFunction<Class<?>, String,
> VarAccessor<?, any>>> factories
> = new HashMap<Class<?>, BiFunction<Class<?>, String,
> VarAccessor<?, any>>>();
>
>
> Regards, Peter
More information about the valhalla-dev
mailing list