Bug
andrei.eremeev
andrei.eremeev at oracle.com
Thu Jan 22 11:11:39 UTC 2015
Hi REPL team,
The following REPL code is buggy.
import java.util.*;
List<Integer> l = new ArrayList<>();
class ArrayList<T> extends LinkedList<T> {public boolean add(T a)
{return false;}}
l.add(10);
l = new ArrayList<>();
The issue is that I can define class ArrayList, but cannot create an
instance of it. In addition, the error message contains unnecessary dot
before ArrayList.
> both class .ArrayList in and class java.util.ArrayList in java.util
match
Andrei Eremeev
More information about the kulla-dev
mailing list