scalastuff/scalabeans — Issue #2: Null pointer exception from descriptorOf(Type)
Author: christophercurrie
Created: 2011-11-14 04:45:23+00:00
State: open

This REPL transcript uses the source cloned from Github (at the time of writing).

scala> import org.scalastuff.scalabeans.Preamble._
import org.scalastuff.scalabeans.Preamble._

scala> import scala.collection._
import scala.collection._

scala> classOf[SortedMap[String,String]]
res0: java.lang.Class[scala.collection.SortedMap[String,String]] = interface scala.collection.SortedMap

scala> descriptorOf(res0)
java.lang.NullPointerException
at org.scalastuff.scalabeans.BeanIntrospector$.classExtent$1(BeanIntrospector.scala:40)
at org.scalastuff.scalabeans.BeanIntrospector$.classExtent$1(BeanIntrospector.scala:40)
at org.scalastuff.scalabeans.BeanIntrospector$.apply(BeanIntrospector.scala:101)
at org.scalastuff.scalabeans.Preamble$.descriptorOf(Preamble.scala:31)
at .(:15)
at .()
at .(:11)
at .()
at $export()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:592)
at scala.tools.nsc.interpreter.IMain$Request$$anonfun$10.apply(IMain.scala:828)
at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
at scala.tools.nsc.io.package$$anon$2.run(package.scala:31)
at java.lang.Thread.run(Thread.java:680)