Delors/BAT — pull request #2 by Blaisorblade (2011-12-12 22:52:13+00:00)
Title: ClassHierarchy: if a class is not found in subclasses/superclasses, return empty set instead of exception

I got this problem while analyzing a jar which was not using Serializable and with a lookup for subclasses("java/io/Serializable"), and now it's solved.

The stacktrace (perhaps mangled) was this one:
java.util.NoSuchElementException: key not found: ObjectType(className="java/io/Serializable")
at scala.collection.MapLike$class.default(MapLike.scala:224)
at scala.collection.mutable.HashMap.default(HashMap.scala:43)
at scala.collection.MapLike$class.apply(MapLike.scala:135)
at scala.collection.mutable.HashMap.apply(HashMap.scala:43)
at de.tud.cs.st.bat.resolved.analyses.ClassHierarchy.subclasses(ClassHierarchy.scala:84)
at de.tud.cs.st.bat.resolved.analyses.Main$.analyze(Main.scala:156)
at de.tud.cs.st.bat.resolved.analyses.Main$.main(Main.scala:77)
at de.tud.cs.st.bat.resolved.analyses.Main.main(Main.scala)