The editor of the new definitive edition of Oscar Wilde's The Picture of Dorian Gray inadvertently highlights this strange point in a recent interview.
In the Harvard University Press promotional podcast on its new Gray, editor Nicholas Frankel says
"[Wilde] did say ... that the book 'contains much of me in it.' I think those were his words. '[The characters] Basil Hallward is who I think I am; Lord Henry [Wotton], who the world thinks me; and Dorian Gray, who I would be in other ages perhaps.' I think that's pretty clear evidence that Wilde saw himself all over this novel in all three of those central characters. Although to give him credit, he also said that art generally conceals the artist more completely than it reveals the artist.... So I think he would have been displeased with us wholly reading the novel in terms of himself and his biography. And of course we wouldn't do that with many works of art. We wouldn't do that with Hamlet, for instance. We wouldn't read Hamlet as an expression of Shakespeare necessarily."
Hear the lady protesting too much for yourself below, starting at the 12:20 mark.