X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=rebuild-class.hs;h=4afb954b25cd78dcde77a08daeed2f7c87ec423c;hb=786dff755133ccc2e44445d9c47baa62010e87e4;hp=cb98f243e7fc7236447204b14dd48ea54b4e347f;hpb=d47b4af2d4cf72352782e8c88a6e03670ca15737;p=hs-java.git diff --git a/rebuild-class.hs b/rebuild-class.hs index cb98f24..4afb954 100644 --- a/rebuild-class.hs +++ b/rebuild-class.hs @@ -18,7 +18,7 @@ main = do clsfile <- decodeFile clspath :: IO (Class File) dumpClass cls putStrLn $ "Source pool:\n" ++ showListIx (M.elems $ constsPool clsfile) - let result = classFile cls + let result = classDirect2File cls putStrLn $ "Result pool:\n" ++ showListIx (M.elems $ constsPool result) B.writeFile outpath (encodeClass cls)