Commit Graph
211 Commits
Author SHA1 Message Date
Mumfrey c04eb1bdd7 Implement remapper, fixes notch->srg at runtime (eg FML), bump to 0.4.10 2015-12-18 22:56:03 +00:00
Mumfrey e2275d15e2 Resolve field obfuscations in superclass mappings 2015-12-16 17:33:54 +00:00
Mumfrey 068f64be00 Fix AP remapper to emit correct notch mappings in refmaps 2015-12-16 14:09:42 +00:00
Mumfrey 03422a0851 Add two tiny optimisations which make decompiled output easier to read 2015-12-16 14:09:23 +00:00
Mumfrey be78c8b191 Indent header more appropriately for easier reading 2015-12-15 13:15:08 +00:00
Mumfrey ed6e358761 Add option to disable decompiler when exporting, fixes #82 2015-12-15 12:37:07 +00:00
Mumfrey 1f88dc0fe6 Bump version to 0.4.9 2015-12-04 13:26:10 +00:00
Mumfrey b56a535005 Store multiple obf types in a refmap 2015-12-04 13:25:58 +00:00
Mumfrey 03744c86a0 AP support for gradle plugin, version bump to 0.4.8 2015-12-04 01:45:43 +00:00
Mumfrey bc42196601 Minor fixes 2015-12-03 02:34:46 +00:00
Mumfrey 6fa0432fcc Use implementing class in static binding when resolving default methods 2015-11-24 14:06:32 +00:00
Mumfrey 519b9c6da1 Fix stack calculation error in RedirectInjector when capturing args 2015-11-24 13:08:27 +00:00
Mumfrey 6322cffe8b Fix off-by-n error in Locals 2015-11-24 12:30:19 +00:00
Mumfrey 650a753af7 Descriptors can have currency symbols too 2015-11-24 01:45:05 +00:00
Mumfrey 1d3a5345e9 Add some simple validation (idiot checking) to MemberInfo 2015-11-23 22:57:43 +00:00
Mumfrey c804069f5c Rethrow spurious NPE as something more meaningful 2015-11-23 22:57:01 +00:00
Mumfrey 237efbc625 Minor housekeeping 2015-11-23 12:33:12 +00:00
Mumfrey f32d67a23c Handle gaps in local variable table when failing over to surrogates 2015-11-21 02:20:16 +00:00
Mumfrey 3a25ffa10f Collapse vestigial if 2015-11-19 13:25:33 +00:00
Mumfrey bd93ef2806 Add mixed-in interfaces to target class metadata 2015-11-19 02:05:41 +00:00
Mumfrey e0e00da276 Version bump to 0.4.7 2015-11-17 15:54:42 +00:00
Mumfrey 8438e29533 Resolve methods in interfaces if supported? 2015-11-17 15:53:59 +00:00
Mumfrey 7eb61bc53a Begin compatibility level support, java 8 must now be explicitly enabled 2015-11-17 15:53:31 +00:00
Mumfrey 13ac04cc88 Clean up unnecessary synthetics 2015-11-02 11:46:10 +00:00
Mumfrey dc84619013 Checkstyle fixes 2015-11-02 11:38:20 +00:00
Mumfrey b09b5b4c48 Hot Code Replacement support thanks to @skinny121 2015-11-02 11:34:17 +00:00
Chris Sanders 65c103eb5a Need to actually start the appender.
Signed-off-by: Chris Sanders <[email protected]>
2015-10-29 18:53:09 -05:00
Chris Sanders 960b215139 Revert "Set debug regardless. This happens before FML sets deobfuscation."
This reverts commit f3c4945019.

Revert "Always check isFMLDeobfuscated for null status."

This reverts commit d12d3f271c.

Revert "Perform nasty filter switch to gurarantee that we'll switch into INIT."

This reverts commit bdda81fb26.
2015-10-29 16:41:22 -05:00
BenLewis b86b843bb3 Fixed re-entrant error caused by both the launch classloader and the java agent trying to transform a class at the same time 2015-10-25 19:02:40 +13:00
Mumfrey 75f738cf28 Fix issue with arrays of primitive types in local variable tables 2015-10-25 01:37:03 +01:00
BenLewis bbdac72be5 Fixed false positive of changes to soft interfaces 2015-10-24 09:07:41 +13:00
BenLewis 09b01109b8 Refactored MixinInfo to handle errors on reload gracefully
Also
- Fixed formatting error
- Fixed changing of classinfo's on reload validation
- Changed agent to return some invalid bytecode on error, to clearly signal an error occured
2015-10-23 17:36:10 +13:00
Mumfrey 74071eb0a4 Add support for lambda expressions inside mixins, thanks to @skinny121 2015-10-22 11:40:24 +01:00
BenLewis bc8296da0e Tidy up code 2015-10-22 08:17:29 +13:00
BenLewis 5a7eaeae79 Fix transformation errors 2015-10-21 11:55:03 +13:00
BenLewis 4ffea5561b Fixed issues with detecting chnaged mixin classes 2015-10-21 10:36:01 +13:00
BenLewis a8558bb5f0 Add java agent to reload mixin 2015-10-20 10:53:41 +13:00
Aaron Hill 10b0cec45e Fix implemented interface methods report 2015-10-14 20:22:25 -04:00
BenLewis b4f06960dc Renamed MemberRef inner classes 2015-10-14 17:43:57 +13:00
BenLewis 2b715538bd Fixed typo 2015-10-12 14:26:10 +13:00
BenLewis d742604aab Fixed java.lang.VerifyError incorrect stack frame errors 2015-10-12 13:35:47 +13:00
BenLewis e51a2dd288 Fixed style issues and refactored transformConstantNode
The refactor is to get rid of code duplication between load constant
transform method and handling of invokedynamic arguments.
2015-10-11 10:43:57 +13:00
BenLewis 9ab0dfc3df Removed debug statement 2015-10-10 13:05:47 +13:00
BenLewis b3de136706 Added support for lambda expressions inside mixins
To support lambda expression the mixin transformer will transform invoke dynamic instructions in the same way as it transforms other invoke instructions as well as transforming their static arguments. Invoke dynamic static arguments can be any constant loadable by ldc instructions and this includes MethodHandles, so it transforms the MethodHandle as if it was a normal invoke instruction.

Note any mixin class that has an invokedynamic instruction in it will now have the target class, class file version set to 52(java 8).
2015-10-10 11:26:55 +13:00
Chris Sanders f3c4945019 Set debug regardless. This happens before FML sets deobfuscation.
Signed-off-by: Chris Sanders <[email protected]>
2015-09-27 20:16:44 -05:00
Chris Sanders d12d3f271c Always check isFMLDeobfuscated for null status.
Signed-off-by: Chris Sanders <[email protected]>
2015-09-17 15:50:55 -05:00
Chris Sanders bdda81fb26 Perform nasty filter switch to gurarantee that we'll switch into INIT.
While @bloodmc 's changes did fix dev and prod time, it doesn't work with
the IVY launcher built into the Sponge mod. This works around it by
manipulating logger levels and adding a filter to hide what we are doing.

@Mumfrey you'll definately want to get rid of this ASAP...

Signed-off-by: Chris Sanders <[email protected]>
2015-09-15 21:20:21 -05:00
bloodmc 8f9b6148a1 Add new INIT phase to handle FML deobf transformer. 2015-09-15 14:35:19 -04:00
Mumfrey a1d2ef62bb Output LVT discrepancies on separate lines to make them easier to read 2015-08-14 14:58:04 +01:00
Mumfrey d69c9d7aa9 Encapsulate Environment within Phase and remove that stupid array 2015-08-14 13:56:31 +01:00