Commit Graph
557 Commits
Author SHA1 Message Date
Mumfrey 99a51998c0 Avoid cross-contaminating injector-added locals by when capturing locals
Fixes #493

Adds a preinject pass to local-capturing injectors so they see only
valid locals. Also decorate mixin-added locals to safeguard against
accidental leakage.
2021-06-05 15:55:17 +01:00
Mumfrey 6994e81622 Use correct class key for lookup into refmap 2021-04-27 13:28:12 +01:00
Mumfrey 6e807085d8 Fix for the original fix for #480, which actually fixes #480 2021-04-26 13:04:21 +01:00
Mumfrey 5f51f16bb5 Do not strip checkcasts for local 0 in static methods, fixes #471 2021-04-20 19:15:36 +01:00
Mumfrey 09b23eae8c Better descriptor validation and trap unexpected desc errors, fixes #461 2021-04-21 13:32:05 +01:00
Mumfrey 6f5dce173b Fix for the fix for computing frames which now fixes #481 and fixes #482 2021-04-14 19:31:06 +01:00
Mumfrey 9109a19d5e Fixes for regressions related to selectors, fixes #479, fixes #480 2021-04-13 21:22:35 +01:00
Mumfrey b1cd46c8c4 Remove now-redundant overload for match 2021-03-17 21:21:09 +00:00
Mumfrey 29c6cc03f4 Some refactoring and finalise contract impl of ITargetSelector::next 2021-03-17 02:33:05 +00:00
Mumfrey 088e8bcf61 Fix some deprecations 2021-03-01 23:40:24 +00:00
Mumfrey 4e4c72ee22 Some more minor javadoc improvements, update README 2021-02-25 18:39:06 +00:00
Mumfrey e9f7d752f2 Refactoring so that service impls don't need to camp on transformer pkg 2021-02-24 22:18:08 +00:00
Mumfrey 57055a150e Use correct (configured) selector in BeforeInvoke 2021-02-20 14:40:08 +00: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 f9aeec8b05 Bump version to 0.8.3-SNAPSHOT 2021-01-31 23:04:13 +00:00
Mumfrey 21881482ae WIP but mostly working Desc selector functionality 2021-01-31 23:00:25 +00:00
Mumfrey 2ef2417de6 Fix formatting in MixinConfig 2021-01-23 21:33:20 +00:00
LexManos dc3b91512b Introduce refMap Wappers 2021-01-23 21:31:15 +00:00
Mumfrey 08d6c7067d Add support for dynamic and pattern target selectors 2021-01-23 21:19:13 +00:00
Mumfrey 922eacb357 Fix unexpected AIOOBE with empty handler signatures, fixes #411 2020-12-23 19:50:08 +00:00
Mumfrey f87008208c Use staticness of invoker for arg offset, fixes #444 2020-12-23 19:22:15 +00:00
Mumfrey 3ccc611e5e Use full annotation class names when resolving injectors, fixes #443 2020-12-23 18:47:37 +00:00
Mumfrey e8dd9239e0 Ensure that all accessor annotations are correctly decorated, fixes #430 2020-12-23 18:34:39 +00:00
Mumfrey 4f51eb5571 Strip out-of-bounds shifts from injection point results, fixes #409 2020-10-18 16:15:46 +01:00
Mumfrey a77b39022e Propagate slice to context-sensitive injection points, fixes #429 2020-10-18 14:29:28 +01:00
Mumfrey 0177c2d394 Fixes for several locals-related issues, fix #398, fix #402, fix #405 2020-10-17 22:10:10 +01:00
Mumfrey b5299bfebc Aggressively resolve soft targets containing '$' and other minor fixes
Fixes #390
2020-05-02 12:34:55 +01:00
Mumfrey 4585277f9f Mixin 0.8.2 RELEASE 2020-10-04 21:33:37 +01:00
Mumfrey 9f5191d100 Update to ModLauncher 7.0 - Fixes #439 2020-09-17 11:36:23 +01:00
Mumfrey 1252714215 Properly transform (ignore) method descriptors for primitive array types
Fixes #383
2020-01-24 18:39:23 +00:00
Mumfrey f5536fb5ee Improve logging implicit match failures for ModifyVariable, fixes #382
Also add some scaffolding for adding the same capability to other
injectors
2020-01-23 22:38:36 +00:00
Mumfrey e32a38e60e Update version to 0.8.1-SNAPSHOT for development 2020-01-10 20:57:26 +00:00
Mumfrey c338f0c7a4 Update build with POM exclusions for older builds and maven repo switch 2020-01-10 18:08:17 +00:00
Mumfrey bd4076714d Provide more useful info when mixin classload is prohibited, closes #376 2020-01-08 21:20:04 +00:00
Mumfrey 8cdc32d1fa Support for Mutable on setter accessors for final fields, closes #378 2020-01-04 16:44:00 +00:00
Jordin cf5a44020a Strip the FINAL flag from all targets 2020-01-03 22:49:36 -04:00
Gabriel Harris-Rouquette b43aaeb356 In retrospect, we can all agree that 1 in fact does not equal 3.
After a lot of scientific consideration, and general consensus, our math
was being managed by the 19th department of the 84th district of
Orwell's General Assertion Testing Authority of Consulate of
Administration. We can in fact clear up the mess after the previous
issues with 2 + 2 being in fact 4, and not 5.

Signed-off-by: Gabriel Harris-Rouquette <[email protected]>
2020-01-02 17:20:46 -08:00
Mumfrey e72808fd95 Always conform synthetic methods, even if no immediate conflict detected 2019-12-13 17:25:51 +00:00
Mumfrey a5d9b4e512 Allow Debug(export = true) to work even when verbose logging disabled 2019-12-13 14:22:14 +00:00
Mumfrey 27ea2a9555 Copy INVOKEDYNAMIC args array to avoid leaking handle remaps, fixes #373 2019-12-13 14:21:39 +00:00
Mumfrey a1ab1520d2 Adding javadoc is only worthwhile if the brain is enabled, derp 2019-12-06 16:46:52 +00:00
Mumfrey 66bdb7b3b0 Fix staticness check and functionality of ModifyVariable in constructors 2019-12-06 16:43:12 +00:00
Mumfrey c986828aff Remove agent from further handling if hard fail when accepting container 2019-11-21 18:07:07 +00:00
Mumfrey be3f944af1 Improve detection and reporting of ASM version, fixes reporting of ASM7+ 2019-11-21 17:40:14 +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 eb7a548f92 Some better logging in MixinService initialisation, for science 2019-11-15 12:48:50 +00:00
Mumfrey 3d58719c75 Add missing null check for audit trail in class generator 2019-11-15 12:47:52 +00:00