Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

That's a JVM restriction, unfortunately. One cannot use *onThrowable* within a constructor.

you could instrument the method that calls the constructor.

If you need to catch an exception thrown from a constructor, with advice, you cannot instrument the constructor itself. But if the constructor is called from a method, for example...

You could instrument the Task.run method, for instance. If an exception was thrown, advice would capture it.

No, lambdas cannot normally be instrumented.

I just added a property `net.bytebuddy.test.jnapath` which you can set on the command line with Maven: mvn -Dnet.bytebuddy.test.jnapath=/usr/lib64/jna-4/ test This should be picked up by JNA under running the tests.

I also added a rule to not run JNA related tests if JNA cannot be loaded. JNA is an optional extension of the attachment API, so Byte Buddy can be...

This implies that Byte Buddy failed to invoke a simple JNA code snippet and does then ignore the tests that use JNA.

You can only instrument classes. You can however emulate this by keeping an active set: you'd instrument classes but before any instrumented logic you would check if an instance is...

Byte Buddy can do everything if it is can be expressed within the Java VM. You can invoke a super class by injecting a proxy into the interceptor. Have a...