Commit Graph
139 Commits
Author SHA1 Message Date
LlamaLad7 1cec8b1377 AP: Fix several cases of ASM TypeHandles breaking code that relies on Mirror.
(cherry picked from commit e5d9db491a)
2023-08-12 17:38:42 +01:00
LlamaLad7 89acb8387a Prioritise TypeHandleASM when it is available.
Fixes remapping of synthetic members in resolvable classes.

(cherry picked from commit c33a48ba5e)
2023-08-12 17:37:48 +01:00
Mumfrey a396db8cd1 Update checkstyle 2021-12-01 20:25:07 +00:00
Mumfrey 1a328c339d Fix handling of UNC paths when converting from URI to File, fixes #534 2021-11-17 21:22:04 +00:00
Mumfrey 1e1aa7fb52 Resolve anonymous inner classes in AP via classpath + ASM where possible
Fixes #518
2021-11-04 20:33:03 +00:00
Mumfrey a9581dd7d9 Remove switch on string 2021-11-01 22:24:02 +00:00
Mumfrey 812bfcc811 Enhanced AP messaging, detect IDEA, support configurable message levels 2021-10-16 13:24:30 +01:00
Mumfrey 2accda5000 Mixin 0.8.4 RELEASE 2021-09-07 18:49:11 +01:00
Mumfrey 0ad070ad02 Update to gradle 7, ASM 9.2, ModLauncher 9.0.7 add JPMS 2021-08-12 12:46:01 +01:00
SizableShrimp dd1f1ceff6 Fix TSRGv2 parsing 2021-06-16 18:46:52 -05:00
Mumfrey 8a5c69134d Add 'quiet' option to AP to silence informational messages 2021-04-15 18:05:10 +01:00
Mumfrey b496c02efe Remap At targets more intelligently, fixes #483 2021-04-15 17:35:08 +01:00
Mumfrey b5200b0537 Allow injection points and dynamic selectors to be defined in mixin pkgs
Temp implementation until access control is moved to service in 0.9
2021-02-18 20:47:12 +00:00
Mumfrey 6f35fe1ded Finalise desc selector and javadoc, enhancements to explicit selector 2021-02-14 21:33:06 +00:00
Mumfrey c1aec0fb49 Show the javadoc some love and a bit of a facelift, improve some docs
Closes #457, closes #446
2021-02-06 01:14:07 +00:00
Mumfrey ef6422f26e Flesh out Desc selector javadoc and functionality 2021-02-03 20:54:12 +00:00
Mumfrey 21881482ae WIP but mostly working Desc selector functionality 2021-01-31 23:00:25 +00:00
Mumfrey 08d6c7067d Add support for dynamic and pattern target selectors 2021-01-23 21:19:13 +00:00
Mumfrey b5299bfebc Aggressively resolve soft targets containing '$' and other minor fixes
Fixes #390
2020-05-02 12:34:55 +01:00
Mumfrey bc7442d306 Hotfix for obfuscation lookup fix which fixes lookups in superclasses
Fixes bug introduced in 54681f0b766cf117de254441db69fa9695c25081 which
prevents lookups in indirect superclasses from resolving correctly
2020-10-04 21:31:59 +01:00
Mumfrey 943894557e Properly recurse into superinterfaces when resolving member obf mappings
#Fixes 438
2020-09-16 19:52:32 +01:00
Mumfrey a5d9b4e512 Allow Debug(export = true) to work even when verbose logging disabled 2019-12-13 14:22:14 +00:00
Mumfrey 8b9621a13b Add missing javadoc 2019-12-10 19:07:40 +00:00
Mumfrey d45be25395 Improve detection and suppressibility of target warnings, fixes #372 2019-12-10 19:00:27 +00:00
Mumfrey ee74e82012 Fix comparison of types for AP invoker handler, fixes #375 2019-12-09 23:55:04 +00:00
Mumfrey 6d9fcfe635 Better wiring for injector annotations, fixes issue w/missed annotations
ModifyVariable and ModifyConstant were previously missing from declared
annotation types. Now delegate to the same registration logic as runtime
2019-11-15 12:58:06 +00:00
Mumfrey d4fa032d7d Add audit trail support for ModLauncher 4.2, update checkstyle 2019-11-09 18:38:45 +00:00
Mumfrey 5ada553610 Adding extra mappings back to FG3 service, also fix build on travis 2019-11-04 20:49:38 +00:00
Mumfrey dd89e23215 Check mixingradle version in AP so we can notify if mixin ver is ahead 2019-11-02 15:03:45 +00:00
Mumfrey 4570a8213e Support for INSTANCEOF opcode in Redirect and ModifyConstant injectors
Fixes #336
2019-10-31 19:33:08 +00:00
Mumfrey dbe3a7e94d Suppress AP warnings for known-unmappable packages such as java. & sun. 2019-10-28 17:13:37 +00:00
Mumfrey 6efc4a563f Fix incorrect format string in tsrg mapping writer 2019-10-28 01:31:49 +00:00
Mumfrey 10af60bb26 Allow warning about targets in the default package to be suppressed
Fixes #338
2019-10-24 18:34:42 +01:00
Mumfrey 887354154c Put SuppressWarnings tokens into an enum for documentation/consistency 2019-10-24 18:21:32 +01:00
Mumfrey a15897221b Minor tweaks to AP internals 2019-09-19 21:21:15 +01:00
Mumfrey fd2f2c79c5 Version 0.8-preview
Add initial modlauncher support
Bump ASM version and remove renamed ASM for modlauncher interop
Conform static accessor target when transforming accessor, Fixes #342
Detect staticness mismatch on accessors, Fixes #341
Allow Invoker to invoke constructors, Closes #339
Remove commons-io and replace with guava, Fixes #327
Fix refmap generation for non-obfuscated derived classes, Fixes #326
Specify locale for case conversions, Fixes #315
Handle accessor overlap more intelligently, Fixes #307
Add SuppressWarnings support to Annotation Processor, Closes #306
Allow mixins applied to a class to be retrieved easily, Closes #302
Conform refmap entries as they are added to the mapper, fixes #296
Fold in misc lvt generation fixes from fabricmc, closes #295
Fail fast when final method is accidentally hidden by mixin, fixes #293
Fix bug handling 2-slot args in cb injector and args gen, fixes #287
Handle accessor mixin types correctly in mixins, Fixes #305, Fixes #288
2019-09-16 16:05:40 +01:00
Mumfrey ba0c777116 0.7.9 - Allow certain injectors to target mixin methods, closes #251 2018-04-20 14:39:26 +01:00
Mumfrey 3961a7cbf8 Fix a bunch of small issues detected by using an intellij inspection 2017-09-08 18:36:57 +01:00
Mumfrey a05e7347a5 0.7.3 - Refactoring some packages and unify transformer extensions 2017-08-30 17:50:57 +01:00
Mumfrey 5a1a51a2f0 Generate mixin class internal name properly for inner class mixins 2017-08-24 17:13:52 +01:00
Mumfrey c9a0ef719f Fix resolution of accessor targets for imaginary target classes 2017-08-23 14:35:29 +01:00
Mumfrey 4ebb6372f8 Fix superclass lookups for shadow methods in obf-derived targets 2017-08-22 23:01:15 +01:00
Mumfrey 2f63e40255 Fix handling of multi-dimensional array elements in the AP 2017-08-10 17:23:59 +01:00
Mumfrey d8c4f6f0a7 AP resolves method mappings in superclasses when direct mapping fails 2017-08-09 18:08:22 +01:00
Mumfrey 217bf321ba Allow injectors to specify multiple explicit target methods 2017-07-18 16:56:55 +01:00
Mumfrey ada26ef95b Detect and compare compatible synthetic bridges, raise error on conflict 2017-07-12 18:17:04 +01:00
Mumfrey 381b945951 Fix compiled artefact to include required classes from asm commons 2017-07-11 14:22:26 +01:00
Mumfrey 41e53c4942 Add support for Overwrite annotation on non-obfuscated methods 2017-07-05 09:15:03 +01:00
Mumfrey c6ce27efb0 Update AP to allow (but warn) coerced multi-target reference conflicts 2017-07-03 14:43:24 +01:00
Mumfrey faf581b977 Make AP emit similar warnings to transformer for up/downgraded methods 2017-06-29 15:47:10 +01:00