Commit Graph
795 Commits
Author SHA1 Message Date
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
Mumfrey ad1d110a63 Bump version to 0.8.6-SNAPSHOT 2021-12-01 20:50:05 +00:00
Mumfrey 155314e6e9 Mixin 0.8.5 RELEASE 2021-12-01 20:33:17 +00:00
Mumfrey a396db8cd1 Update checkstyle 2021-12-01 20:25:07 +00:00
Mumfrey a40e4bc59a Move potemkin generator to buildSrc and switch to groovy 2021-12-01 19:30:51 +00:00
Mumfrey b47627fd01 Merge remote-tracking branch 'origin/pr/538' into 0.8.5 2021-12-01 18:23:59 +00:00
zml 8cd66d8241 build: Synthesize modules to link with multiple versions of libraries
Gson and Guava are both used in pre- and post-modular versions in
environments where Mixin is used on the module path, so we have to be
able to link against both in the compile-time module descriptor.
2021-12-01 08:15:18 -08: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 8dbd876225 Bump version to 0.8.5-SNAPSHOT 2021-09-08 17:13:08 +01:00
Mumfrey 2accda5000 Mixin 0.8.4 RELEASE 2021-09-07 18:49:11 +01:00
Mumfrey c9586f548e Use static module requires because JPMS is just awful 2021-09-06 18:27:28 +01:00
Mumfrey e10ac704e1 Numbers are hard, typing version numbers doubly so... apparently. 2021-09-06 18:27:02 +01:00
Mumfrey 9b3b4819cd Merge remote-tracking branch 'origin/pr/520' 2021-09-01 16:11:06 +01:00
zml 87b36f6707 Adjust modularity build configuration to avoid duplicate sources
This allows the shadow task to apply its own merging logic for
resources that are validly duplicated, in this case service files

The checkstyle exclusion for module-info is moved from the
buildscript to checkstyle.xml, for application within IDEs, not just
Gradle.

A small fix to PrettyPrinter is included as well, based on a line
incorrectly converted from log4j2.
2021-08-30 22:53:08 -07:00
Mumfrey 4c7beea14c Separate Profiler instances for things which can operate concurrently 2021-08-25 18:32:27 +01:00
Mumfrey b79b42a460 Make logger adapters more better, do the thing with the vararg throwable 2021-08-19 18:57:30 +01:00
Mumfrey 212d5d1b35 This isn't even used, appears to be vestigial. Closes #512 2021-08-18 20:45:46 +01:00