There is no autoboxing for arrays, only for primitives. I believe this is your problem.
More Related Contents:
- What is PECS (Producer Extends Consumer Super)?
- Difference between
- Java Generics (Wildcards)
- Java generics super keyword
- Java Enum definition
- What does the question mark in Java generics’ type parameter mean? [duplicate]
- Booleans, conditional operators and autoboxing
- What is the difference between ‘super’ and ‘extends’ in Java Generics [duplicate]
- Java Class.cast() vs. cast operator
- What’s the point of Guava’s Optional class
- How do I find out what type each object is in a ArrayList?
- What are Reified Generics? How do they solve Type Erasure problems and why can’t they be added without major changes?
- Generic wildcard types should not be used in return parameters
- Explanation of generic
- Java erasure with generic overloading (not overriding)
- Java HashMap nested generics with wildcards
- Create a List of primitive int?
- Bug in eclipse compiler or in javac (“type parameters of T cannot be determined”)
- What is the point of allowing type witnesses on all method calls?
- Java collections covariance problem
- Get type name for generic parameter of generic class [duplicate]
- NullPointerException with autoboxing in ternary expression
- Java: bounded wildcards or bounded type parameter?
- Generic class that accepts either of two types
- List is a raw type. References to generic type List should be parameterized
- incompatible types and fresh type-variable
- Java nested generic type mismatch
- Storing different types of elements in a List in Java
- ArrayList Generic without Type
- java : Understanding Arrays.asList(T…array) method for primitive types