Improve inference of type arguments for raw types
Type argument inference for raw types should be improved and the "ignoreRawTypeArguments" option should be made optional again.
See pull request #637 .
Also, checker/jtreg/rawtypes/RawTypeFail.java should be re-enabled and expanded.
~~The following code crashes when -AignoreRawTypeArguments=false is used:~~ No longer crashes Nov. 12, 2019.
import java.util.Collections;
import java.util.Vector;
public class SortVector {
void test() {
Vector vector = new Vector();
Collections.sort(vector);
}
}
~~javacheck -processor tainting SortVector.java -AprintErrorStack -AignoreRawTypeArguments=false~~
javacheck -processor tainting SortVector.java -AprintErrorStack -AignoreRawTypeArguments=false -AconservativeUninferredTypeArguments
Additional test case for raw types: https://github.com/typetools/checker-framework/issues/2880