bradsdavis / candle-decompiler

Candle Decompiler
82 stars 18 forks source link

Generic type inference #4

Open md-5 opened 11 years ago

md-5 commented 11 years ago

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.

bradsdavis commented 11 years ago

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!

md-5 commented 11 years ago

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.

bradsdavis commented 11 years ago

Adapter for what, just curious?

md-5 commented 11 years ago

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