- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: getClass returns Class[_]?
Mon, 2009-01-19, 01:54
>>>>> "Andreou" == Andreou Dimitris writes:
Andreou> Hi, Probably this is a complicated issue, but shouldn't the
Andreou> following work?
Andreou> val xClass: Class[X] = new X().getClass //it returns Class[_],
Andreou> nor Class[X]
Andreou> val integerClass: Class[Integer] = new Integer(5).getClass
Andreou> //similar error
There's been a ticket open on this for a long time in Trac:
http://lampsvn.epfl.ch/trac/scala/ticket/490
I really hope it gets fixed in 2.8.0.