Rafael Winterhalter
                                            Rafael Winterhalter
                                        
                                    The only one I can think of that I am not uncomfortable with would be a system property. For example, one that contains a regex. Would that work? If so,...
I'd try here: https://github.com/raphw/byte-buddy/blob/bba2d6b26d974ce53c94ac5f7814569529bdeff7/byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyAndroidService.java#L131
Hibernate supports build-time instrumentation which I assume is required for Graal. Have you checked Hibernates documentation?
Byte Buddy is immutable: You have to assign the `defineField` method back to the variable.
eventBuilder = eventBuilder.defineField(dimension.getTableName(), Integer.class, 1); The first assignment is missing.
This works without a problem: DynamicType.Builder eventBuilder = new ByteBuddy().subclass(Object.class); eventBuilder = eventBuilder.defineField("foo", Integer.class, 1); // Define a getter method for the property eventBuilder = eventBuilder .defineMethod("get" + "Foo", Integer.class,...
Byte Buddy in itself is just a library when used via Hibernate. If you remove it, you'd have a different app. I can't see how BB breaks your environment. It's...
Not sure I follow? If you dynsmically reload your agent with a new version of Byte Buddy, why can't you reload the linked code?
No, the method is part of a functional interface. By adding Byte Buddy to the boot loader, it's not updateable anyways, though
I would need a reproducer as this looks right. Did you try overriding the other methods, too.