Exception when using Proxy Classes #407

Closed
graben opened this Issue Apr 3, 2017 · 4 comments

Comments

2 participants
@graben

graben commented Apr 3, 2017

Versions since 1.25 including latest 1.31 does throwing an Exception when using Proxy Classes. There is a line of code commented under "754d332" that is causing this behavior. It's not reasonable to me why this has been introduced.

@rliesenfeld rliesenfeld added the other label Apr 8, 2017

@rliesenfeld

This comment has been minimized.

Show comment
Hide comment
@rliesenfeld

rliesenfeld Apr 8, 2017

Member

?! What do you mean "using Proxy Classes"? Which exception is thrown? An example test would help...

Member

rliesenfeld commented Apr 8, 2017

?! What do you mean "using Proxy Classes"? Which exception is thrown? An example test would help...

@graben

This comment has been minimized.

Show comment
Hide comment
@graben

graben Apr 9, 2017

Well, I'm using Weld (CDI) which is using Proxies at runtime. Those classes are not found by ClassFile throwing intgernal NotFoundException. I'm still not sure why this method (754d332) is called. No return value, no inner state?

Looking if I can create a small (simple) example test.

graben commented Apr 9, 2017

Well, I'm using Weld (CDI) which is using Proxies at runtime. Those classes are not found by ClassFile throwing intgernal NotFoundException. I'm still not sure why this method (754d332) is called. No return value, no inner state?

Looking if I can create a small (simple) example test.

@graben graben closed this Apr 9, 2017

@graben graben reopened this Apr 9, 2017

@graben

This comment has been minimized.

Show comment
Hide comment
@graben

graben Apr 9, 2017

Example test:
test.zip

graben commented Apr 9, 2017

Example test:
test.zip

@rliesenfeld rliesenfeld self-assigned this Apr 13, 2017

@rliesenfeld rliesenfeld added enhancement and removed other labels Apr 13, 2017

@rliesenfeld

This comment has been minimized.

Show comment
Hide comment
@rliesenfeld

rliesenfeld Apr 13, 2017

Member

Thanks. Weld generates a synthetic subclass for each test class using CdiRunner, and JMockit attempts to read it to extract method parameter names. Naturally, in the case of synthetic subclass, JMockit should instead take the superclass, which is the actual test class.

Member

rliesenfeld commented Apr 13, 2017

Thanks. Weld generates a synthetic subclass for each test class using CdiRunner, and JMockit attempts to read it to extract method parameter names. Naturally, in the case of synthetic subclass, JMockit should instead take the superclass, which is the actual test class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment