It fails with "Exception in thread "main" java.lang.IllegalArgumentException: None of [public static java.lang.Object org.foo.bytebuddysave.SaveInterceptor.interceptInstanceSave(java.lang.reflect.Method,org.foo.bytebuddysave.Saver,org.foo.bytebuddysave.Flags,java.lang.Object)] allows for delegation from public synchronized org.foo.bytebuddysave.Entity2 org.foo.bytebuddysave.Entity2$Setter$Tracking$ByteBuddy$Subclass._instance$Save$Method(org.foo.bytebuddysave.Saver,org.foo.bytebuddysave.Flags)".
This is where it's trying to configure the method:
It fails with "Exception in thread "main" java.lang.IllegalArgumentException: None of [public static java.lang.Object org.foo.bytebuddysave.SaveInterceptor.interceptInstanceSave(java.lang.reflect.Method,org.foo.bytebuddysave.Saver,org.foo.bytebuddysave.Flags,java.lang.Object)] allows for delegation from public synchronized org.foo.bytebuddysave.Entity2 org.foo.bytebuddysave.Entity2$Setter$Tracking$ByteBuddy$Subclass._instance$Save$Method(org.foo.bytebuddysave.Saver,org.foo.bytebuddysave.Flags)".
This is where it's trying to configure the method:
And this is the class it's trying to delegate to:
To reproduce the error, unzip the attached file and run AddSynchronizedInstanceLevelSaveMethod.
byte-buddy-instance-method-problem.zip