|
|
|
Re: What to do when a type collides with a package? [message #1783537 is a reply to message #1783471] |
Tue, 13 March 2018 20:52 |
Stephan Herrmann Messages: 1853 Registered: July 2009 |
Senior Member |
|
|
Sergey Toshin wrote on Tue, 13 March 2018 14:31
And I have ability to change the way how the decompiler works, I just need a recommendation which 1) can be easily implemented and requires to change less of source; 2) fixes collides, and resolves types by the correct way
If you want to got that road, you could, e.g., intercept where the decompiler reads field declarations and references from .class. Modify that info to disambiguate by prepending a unique prefix for fields, e.g., "$field$".
If you do this uniformly for all field_info and CONSTANT_Fieldref_info structures, the program should remain the same, yet without name conflicts between fields and any other element.
|
|
|
Powered by
FUDForum. Page generated in 0.04055 seconds