[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in FastHierarchy ?



I've tried to run simple code:

    final FastHierarchy fh = Scene.v().getOrMakeFastHierarchy();
    Type stype = Scene.v().getRefType("java.net.SocketInputStream");
    Type ftype = Scene.v().getRefType("java.io.FileInputStream");

    if (fh.canStoreType(stype, ftype))
      System.out.println(stype.toString()+" can be stored into"
                         +ftype.toString());


And I got the line printed.
Should "canStoreType" return true here?

BTW I'm using soot-2.0.1, jdk1.3

Thanks!