Commit Graph
814 Commits
Author SHA1 Message Date
Mumfrey 017eecf17d Propagate local context through compounds via decoration, closes #532 2024-06-25 23:45:48 +01:00
Mumfrey d2105c6359 Display correct node type in printLocals 2024-06-21 00:01:58 +01:00
Mumfrey 8f0bb79ae5 Add fuzz and skip options to AfterInvoke, closes #653 2024-06-20 23:54:19 +01:00
Mumfrey a362aad99b Fix AP file writer issue with non-file outputs, fixed #622 2024-06-07 22:58:07 +01:00
Mumfrey 2d14c78a10 Fix bug with option flags from previous commit 2024-06-07 21:30:03 +01:00
Mumfrey 1bae530fba Merge remote-tracking branch 'origin/pr/667' 2024-05-24 19:55:37 +01:00
Mumfrey 02d7470981 Allow authors to specify order on injector annotations 2024-05-24 19:03:04 +01:00
LlamaLad7 02bf3d2240 Change: Add stack checking to old Target#findInitNodeFor overload and un-deprecate it.
The only reason MixinExtras uses this method is to match Redirect's behaviour, so I would like it to be kept in line with that.
Additionally, there is nothing wrong with not checking the desc as long as you've definitely found the right `NEW` insn, which the injection point handles itself.
2024-05-22 17:37:29 +01:00
Mumfrey 1f34ee908a Run all preinject operations before starting any actual injections 2024-05-18 15:46:06 +01:00
Mumfrey a2751aa134 Apply injectors in discrete phases, ensure Redirects always go last(ish) 2024-05-18 11:17:03 +01:00
Mumfrey 08168676c7 Really only linear offsets are supported with base assumption 2024-05-17 20:20:27 +01:00
Mumfrey b04e6d64d3 Propagate argument offsets when applying Redirect, closes #544 2024-05-16 23:34:06 +01:00
Mumfrey 54f3644640 Don't create logger in MixinServiceAbstract ctor, updates #569 2024-05-15 19:31:55 +01:00
Mumfrey e21251116a Replace zip-based ML legacy VirtualJar shim with inline SecureJar shim 2024-05-15 19:22:01 +01:00
Mumfrey a13f0c0db0 Convert EXPAND_FRAMES ClassReader flag to tunable, default to 0 2024-05-14 21:50:50 +01:00
Mumfrey 902c3439e8 Restore old findInitNodeFor used by MixinExtras, mark as deprecated 2024-05-14 20:40:36 +01:00
Mumfrey a95dcd9af4 Bump version to 0.8.7-SNAPSHOT 2024-05-14 20:34:57 +01:00
Mumfrey 2c9a96700c Mixin 0.8.6 RELEASE 2024-05-13 00:14:35 +01:00
Mumfrey 53aa500f8d Update build.gradle for hardware signing token 2024-05-12 23:39:45 +01:00
Mumfrey d2d1fbc6f4 Move staticness check for mixin field after unique check, closes #576 2024-05-12 23:39:40 +01:00
Mumfrey 480bd3d9e5 Add missing toString override, closes #562 2024-05-12 23:39:34 +01:00
Mumfrey 1accf3fd6b Check for null when inspecting Mixin superclass, closes #546 2024-05-12 23:39:28 +01:00
Mumfrey 2e5a4b0512 Fix descriptor filtering for NEW injection point, closes #515 2024-05-12 23:39:21 +01:00
Mumfrey f0d2cd21df Add constructor invokers to refmap when type is implied, closes #454 2024-05-12 21:31:13 +01:00
Mumfrey 5f57d5006b Add fallback shim for synthetic package for older ModLauncher versions 2024-05-12 21:31:13 +01:00
Mumfrey c970d84ec3 Wrap logger abstraction in agent classes to prevent crash at startup 2024-05-12 21:31:13 +01:00
Mumfrey a87babe37c Fix missing field assignment for source in MixinConfig 2024-05-12 21:31:13 +01:00
Mumfrey 9c1abe34e5 Fix broken invokers when target is an interface 2024-05-12 21:31:13 +01:00
Mumfrey 73def3578b Restore ctor init merging to previous logic, introduce PRE_BODY enforcer
Closes #658
2024-05-12 21:31:13 +01:00
Mumfrey 3c8c9132c9 Fix checkstyle and stale imports 2024-01-24 21:42:32 +00:00
Mumfrey 41a68854f6 Merge remote-tracking branch 'origin/pr/657' 2024-01-21 18:34:28 +00:00
Mumfrey 69487585a6 Merge remote-tracking branch 'origin/pr/638' 2024-01-21 18:34:15 +00:00
Mumfrey 3104a5b0b5 Revert method change which breaks MixinExtras 2024-01-21 18:29:00 +00:00
Mumfrey d5fc6623c0 Add support for injectors in interface mixins 2024-01-21 18:28:41 +00:00
Mumfrey f6951762a7 Track source of mixin configs and use source id in conformed names 2024-01-21 18:28:27 +00:00
Mumfrey 7a3cd42a67 Update ASM and add support for inject into constructor 2024-01-21 18:28:03 +00:00
Mumfrey 5aa23b532a Update to register VirtualJar for synthetic classes 2024-01-21 18:27:34 +00:00
Mumfrey e02f4cae3f Refactoring cherry-pick from 0.8.6-dev for target selectors 2024-01-21 18:25:47 +00:00
Sebastian Hartte 9e8af15ea2 Style fixes 2024-01-08 22:34:53 +01:00
Sebastian Hartte a40c96a63f Rely on the ML-Specification version present in the ModLauncher environment rather than on the Package specification version, since that version is unavailable in two scenarios: 1) ML loaded as a JPMS module and 2) ML added to the classpath using a folder rather than JAR-file. 2024-01-07 15:50:40 +01: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 d633516a27 Bump AP to Java 8. 2023-08-12 17:42:00 +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 a60200dcbb Restore compat with ASM 5.0.3 by dynamically creating ClassRemapper 2021-12-04 13:49:36 +00:00
Mumfrey 45856b4028 Replace guava deleteRecursively with internal version for guava compat 2021-12-04 13:02:06 +00:00