Commit Graph
191 Commits
Author SHA1 Message Date
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
Mumfrey 693e4701c0 Modularise and improve tweaker bootstrap logic, updates #59
Separates the previously rather polluted "may be starting under FML"
logic into a separate module introduces the concept of "launch agents"
which will (going forward) contain any environment-specific launch tasks
which need to be performed by the tweaker.

This commit *also* fixes issues when bootstrapping mixin by adding the
tweaker directly to the launch configuration in both production and
development. It also effectively provides a mechanism whereby the first
software agent to bootstrap mixin as a subsystem (via the tweaker) will
then co-operatively load all others.
2015-08-14 13:22:11 +01:00
Mumfrey 6ebfa5c016 Version bump to 0.4.5 for development 2015-07-29 12:20:43 +01:00
JBYoshi 1fbf4afda3 Improve mixin method checks 2015-07-29 12:16:40 +01:00
Mumfrey 333fec6f0b Allow constraints to be forcibly ignored for testing purposes 2015-06-04 01:53:11 +01:00
Mumfrey 98eb5f7f5b Mix initialisers more effectively, fixes @Aaron1011 2015-06-04 01:44:52 +01:00
Mumfrey f66760a5bf Add new internal interface for token provider 2015-05-28 23:50:11 +01:00
Mumfrey 7434e54b60 Add basic constraint validation capabilities to overwrite annotations 2015-05-28 18:53:40 +01:00
Mumfrey b46bfe5da6 Version bump to 0.4.4 for development 2015-05-28 18:51:15 +01:00
Mumfrey 4e3de30efb Only display the header once per session 2015-05-28 02:17:34 +01:00
Mumfrey 696708ca74 Add support for injector callbacks without method args, closes #49 2015-05-24 02:52:32 +01:00
Mumfrey 1218cc51e3 Fix config priority and provide config-wide mixin priorty setting 2015-05-22 18:30:36 +01:00
Mumfrey 97319a5049 Add export filter, allows exporting only interesting classes if required 2015-05-22 18:12:23 +01:00
Mumfrey e4c445b8a4 Unify source header format with Sponge projects 2015-05-22 16:53:44 +01:00
Mumfrey 7f3f7bf446 Allow runtime-decompilation of exported classes using fernflower 2015-05-22 14:38:23 +01:00
Mumfrey 771746185f Version bump to 0.4.3 2015-05-21 19:20:54 +01:00
Mumfrey 1631a6c66e Add coercion support for covariant parameter types in injected callbacks 2015-05-21 19:20:41 +01:00
Mumfrey c9e31fad0f Allow truncation of local capture injectors 2015-05-21 17:46:40 +01:00
Mumfrey 7427f06dbb Add AfterInvoke (INVOKE_ASSIGN) injection point type 2015-05-21 17:45:19 +01:00
Mumfrey 10040e9f3d Fixes and improvements for local capture, avoid cryptic error on bad LVT 2015-05-21 15:38:14 +01:00
Mumfrey 48ff6de3a0 Add support for static member queries in ClassInfo 2015-05-19 15:48:21 +01:00