• Elliott Hughes's avatar
    Work around a bug with <T> ... <? extends T[]> methods. · 5479d77e
    Elliott Hughes authored
    Java 6 adds an Arrays.copyOf method that confuses droiddoc into producing
    a class "Array" in the anonymous package. I've raised a bug for someone
    to work out why and fix this properly (after spending a fairly fruitless
    afternoon on it). This work-around filters that out the cruft. I've checked
    the generated current.xml file and the generated java.util.Arrays stubs,
    and they're both correct. The extent of droiddoc's confusion appears to be
    limited to inventing a non-existent class. (My guess is that it doesn't
    realize that the element type of the array is a type parameter, not a type,
    and it ends up using a default type name of "Array" from somewhere [javadoc
    itself?].)
    
    Bug: 2715505
    Change-Id: I2ad7ecc819e320a1d209720b3dfbef45bbd89877
    5479d77e
Stubs.java 40.6 KB