candle-decompiler icon indicating copy to clipboard operation
candle-decompiler copied to clipboard

Generic type inference

Open md-5 opened this issue 12 years ago • 4 comments
trafficstars

Since local variables need to have their types inferred, and from that we can infer the type of variables used in each method invocation, it would be possible to recover the generic types of classes / fields removed by obfuscators.

A nice feature to think about in the future. All the best md_5

PS: I'll probably be making random tickets slating all the features I think would be a nice addition - and maybe even implement some when the codebase gets a bit further along.

md-5 avatar Feb 17 '13 05:02 md-5

Yes, this is something we have planned to try and recover, and is pretty much the same approach we will take. It will be a least a few months out though. If you track this comment, I will let you know when I get it in there.

Keep the feature requests coming!

bradsdavis avatar Feb 17 '13 13:02 bradsdavis

I actually wrote the type inference part for local variables in a separate adapter of mine, so I know its possible :p just got to get around to retyping the efields.

md-5 avatar Feb 17 '13 19:02 md-5

Adapter for what, just curious?

bradsdavis avatar Feb 17 '13 19:02 bradsdavis

Well, bytecode adapter, feed bytecode in, get more usable bytecode out.

md-5 avatar Feb 18 '13 05:02 md-5