2

Possible Duplicate:
Have you ever used Phantom reference in any project?

What are practical uses of PhantomReference? Since their 'get' always returns null, the objects they point to can't be accessed through them. So what's their use? Through subclassing maybe (similar to how WeakReference is subclassed in WeakHashMap)?

Community
  • 1
  • 1
shrini1000
  • 7,038
  • 12
  • 59
  • 99
  • 4
    http://stackoverflow.com/questions/1599069/have-you-ever-used-phantom-reference-in-any-project – Pavel Veller May 08 '12 at 02:58
  • @Brian Roach and others, I wanted to see some code examples using PhantomReference, but didn't mention it in my question. My bad. If I modify the question appropriately, could you pl. consider reopening it? – shrini1000 May 08 '12 at 06:43

0 Answers0