Given the following not-very-useful code:
package com.something;
import java.util.ArrayList;
import java.util.Collectio
While the compiler does not infer the generic type one might intend, it will enforce type constraints that are explicitly specified. The following invocation results in a type error.
this.plain("", new ArrayList()); /* Compiler error. */
The parameterized method
plain(String, String) of type Test is not applicable for the arguments (String, ArrayList )