Commit Graph
813 Commits
Author SHA1 Message Date
LlamaLad7 c093311184 Fix: Overhaul MixinVerifier supertype logic.
It previously didn't handle array types correctly among some other issues.
2024-06-02 19:43:20 +01:00
LlamaLad7 35c079a988 Fix: Resolve occasional NPE in Locals calculations. 2024-06-02 19:43:20 +01:00
LlamaLad7 8d413b8e43 Compat: Gate NEW descriptor filtering. 2024-06-01 18:44:47 +01:00
LlamaLad7 ea733f9603 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-06-01 18:23:58 +01:00
LlamaLad7 afb9f13921 Fix: Restore removed methods relating to configs. 2024-05-20 01:14:32 +01:00
Mumfrey 0165cf9fcd Restore old findInitNodeFor used by MixinExtras, mark as deprecated
(cherry picked from commit 902c3439e8)
2024-05-19 22:46:47 +01:00
LlamaLad7 92a64e3634 Fabric: Default At#unsafe to true. 2024-05-19 22:45:33 +01:00
LlamaLad7 fda52dce6b Fix: Resolve inappropriate null default in Mixins#addConfiguration. 2024-05-19 22:39:38 +01:00
LlamaLad7 8fda508119 Fabric: Re-allow jumps and array accesses inside initialisers. 2024-05-19 22:19:31 +01:00
LlamaLad7 a1d5becea7 Fabric: Fall back to modid in MethodMapper#getMixinSourceId. 2024-05-19 22:12:41 +01:00
LlamaLad7 998f057459 Initial merge for 0.8.6 2024-05-19 22:05:31 +01:00
LlamaLad7 9cf325d31c Revert "Allowing injecting in constructor's (#30 #40)"
This reverts commit 536170a946.
2024-05-19 19:10:19 +01:00
LlamaLad7 3a090bd0ca Revert "New: Allow injection point specifiers anywhere. (#129)"
This reverts commit e70693a79a.
2024-05-19 19:04:03 +01:00
Mumfrey 2c9a96700c Mixin 0.8.6 RELEASE 2024-05-13 00:14:35 +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
Su5eD e779303628 Use 0 as class reader flags in Modlauncher bytecode provider (#137)
Relates to neoforged/NeoForge#768
2024-04-16 21:38:47 +01:00
LlamaLad7 320b74c2d4 Fix: Reset Unique field counters on Mixin application. (#136)
They previously caused hotswaps to fail due to the number increasing on each application.
2024-04-11 13:52:14 +01:00
LlamaLad7 738638f092 Fix: Strip synthetic LVT entries after exporting. (#135)
They are useful for the dumped classes, but they have incorrect labels and as such they confuse IDEA's debugger.
2024-04-03 16:18:33 +01:00
modmuss 49042ea4ca Add maven metadata (#130)
* Add maven metadata

* Typo
2024-03-08 09:27:11 +00:00
LlamaLad7 dadc14717c Fix: Properly extend the stack in CallbackInjector. (#131)
The old logic misses the receiver and does not correctly handle double-size types.
2024-03-08 09:26:04 +00:00
LlamaLad7 8c8ece2737 Fix: Check the staticness of the original call not the current one. (#132) 2024-03-08 09:25:55 +00:00
LlamaLad7 e70693a79a New: Allow injection point specifiers anywhere. (#129)
Takes the relevant changes from https://github.com/SpongePowered/Mixin/commit/e02f4cae3fe51d6bd83de5e020956587ead8087c.
2024-03-03 16:34:02 +00:00
LlamaLad7 3eb5281d66 Fix/modifyarg(s) after redirect (#128)
* Fix: Resolve `@Redirect`s breaking `@ModifyArg`.

* Fix: Resolve `@Redirect`s breaking `@ModifyArgs`.
2024-03-03 16:33:50 +00:00
Matyrobbrt 8caaaaa62d Include the Gson module deps in the module-info (#126)
* Include the Gson module deps in the module-info

* Fully fix modularity

* Update PatternCompiler.java
2024-03-03 16:33:19 +00:00
modmuss 8bb4cfe1a4 Define newer Java versions (#124) 2024-03-03 16:33:04 +00: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 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