Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to instrument java.io.InputStream.read(byte[],int,int) #333

Open
abryantsev opened this issue Sep 26, 2019 · 1 comment
Open

Fails to instrument java.io.InputStream.read(byte[],int,int) #333

abryantsev opened this issue Sep 26, 2019 · 1 comment

Comments

@abryantsev
Copy link

abryantsev commented Sep 26, 2019

Hi developers!

I have found a use case in my project for Quasar framework. Everything works as expected except that I need to extend java.io.InputStream.read(byte[],int,int). Whatever I have tried doesn't work. The only way to workaround the issue is to override the mentioned method in my extension by copy-pasting the original implementation. This looks a bit ugly. I attach a test project that demonstrate an issue.

I don't know whether the mentioned problem is a lack of functionality or I don't understand how to specify method to instrument in the suspendable-supers/suspendables.

Any help would be very appreciated. Thank you.

Quasar: 0.7.10

Test project FiberTest.zip (it is currently produces an exception. If commented out code is uncommented then there are no exceptions)

Execution log with exception.txt

Instrumentation debug log.zip

@kimffy24
Copy link

java/io/BufferedInputStream#read is defined with an synchronized key word, which is an unsupported statement in quasar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants