Commit Graph
147 Commits
Author SHA1 Message Date
Mumfrey 69487585a6 Merge remote-tracking branch 'origin/pr/638' 2024-01-21 18:34:15 +00:00
Mumfrey d5fc6623c0 Add support for injectors in interface mixins 2024-01-21 18:28:41 +00:00
Mumfrey e02f4cae3f Refactoring cherry-pick from 0.8.6-dev for target selectors 2024-01-21 18:25:47 +00:00
LlamaLad7 1edd5f10cb Fix NPE when resolving fields in TypeHandleASM.
Closes https://github.com/SpongePowered/Mixin/issues/560.
2023-08-12 17:54:26 +01:00
LlamaLad7 74c25d25ea AP: Fix and simplify checking of factory invoker return types.
We no longer use mirror. The generics are irrelevant in the first place because Mixin does not check them at runtime.

(cherry picked from commit ccfb5ee089)
2023-08-12 17:39:06 +01:00
LlamaLad7 ebc72cf782 AP: Improve validation of mixin superclasses.
Extending an already-compiled mixin no longer results in an error, and extending (a mixin that targets) your target class does result in an error.

(cherry picked from commit 7f7dbc1f37)
2023-08-12 17:38:57 +01:00
LlamaLad7 be3b94df6a AP: Skip superclass validation for imaginary and simulated targets.
(cherry picked from commit 0fb3116c4f)
2023-08-12 17:38:51 +01:00
LlamaLad7 2e4bf962e9 Fix resolution of upper bounds of intersection types.
(cherry picked from commit c902985015)
2023-08-12 17:38:47 +01:00
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