Generic Method is not recognized

Description

So, here is a small use case. I have one interface :

And impl:

It fails with : java.lang.IllegalArgumentException: HV000162, does not specify the constructor/method findJob.

It could be an issue in hibernate or in may be in spring?

Environment

None

Activity

Show:

Gunnar Morling September 4, 2015 at 6:59 AM

We may do a 5.2.2 bugfix release. We don't have one scheduled, I'd wait a bit longer to see whether other bug fixes pop up that should be included. For the time being you could try the snapshot version published to the JBoss Maven repo (see here) once the PR has been merged and this issue is resolved.

Eugene Rabii September 4, 2015 at 6:44 AM

@gunnar you are awesome guys . thx a lot! Is that target for some specific release of HV? I'd like to give it a spin.

Gunnar Morling September 3, 2015 at 3:20 PM

Thanks for providing the example, figured what's going on now.

The BV spec does not explicitly cover the case of passing a super-type method / bridge Method object to validateParameters() and it's clearly not how we envisioned that method to be invoked. Still I think it'd be beneficial if HV does the proposed handling. Submitted PR #425 which takes care of that.

Eugene Rabii September 1, 2015 at 6:30 AM
Edited

hello @gunnar, sorry, so taking your example here - things are pretty easy once you specify this:

You are actually explicitly telling what the T param is : UUID. What if you specify Object.class? Then it will break.

I've also opened the issue in spring and they sort of hacked it in the spring itself, but it seems that the problem is still in hibernate.

Here is the link: https://jira.spring.io/browse/SPR-12237

Gunnar Morling August 31, 2015 at 6:44 AM

Hey , any progress with the test case? Anything we can help with to reproduce the issue? Thx!

Fixed

Assignee

Reporter

Bug Testcase Reminder (view)

Bug reports should generally be accompanied by a test case!

Bug Testcase Reminder (edit)

Bug reports should generally be accompanied by a test case!

Participants

Eugene Rabii
Gunnar Morling
Hardy Ferentschik

Fix versions

Affects versions

Priority

Created August 17, 2015 at 11:17 AM
Updated September 29, 2015 at 8:38 AM
Resolved September 7, 2015 at 7:18 AM
Loading...