new String[] { "foo", "bar" }.clone();
With my favorite IDE (i.e. Eclipse), I wanted to see the source code of the above clone() method by pressing Ctrl (as usual) on it, but it led me to the native Object , which provides only the signature, and not the body of the method.
AutoComplete informed me that the specified clone() method belonged to the String class ( clone() : String[] - String ), but the source code of the String class does not provide such a method (since I am dealing with the String[] class).
So where is this implementation hiding? Should autocomplete be fixed?
sp00m
source share