Mixin icon indicating copy to clipboard operation
Mixin copied to clipboard

Adding Mixin AP to 1.18.2 Forgedev causes incomprehensible error during compileJava

Open SizableShrimp opened this issue 3 years ago • 0 comments

When attempting to setup Mixin integration inside Forgedev/patcherdev, a compiler error is produced by the Mixin Annotation Processor every time. Removing the annotation processor resolves the issue but means refmaps must be written by hand. The compile error in question:

C:\Users\jchar\IdeaProjects\MinecraftForge\Forge1.18\projects\forge\src\main\java\net\minecraft\core\Holder.java:100: error: invalid accessor method in record Direct
      public T value() {
               ^
  (return type of accessor method value() must match the type of record component value)
  where T is a type-variable:
    T extends Object declared in record Direct

This occurs in the record class Holder.Direct. I attempted to investigate this issue myself and found nothing substantial.

Conversation in SpongePowered discord: https://discord.com/channels/142425412096491520/626802111455297538/980916720099274842

SizableShrimp avatar May 31 '22 04:05 SizableShrimp