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
Bean reflection doesn't check parent class #84
Comments
Anybody? |
I think empty string is possible if |
If any of those fail, you can also fire up the Debugger, and break on PrintNode's render method. This way you will be able to track your method invocation and see the returned value. |
After some debugging I can say that problems is here. My method |
Perhaps there is an issue with primitive types? According to your original issue, your |
I changed my My test is very simple.
and
The result is:
Has anyone tried to use a parameter with type number/long? |
I found where is the problem. The problem is the same founded by me here. |
I have the same problem if I try to use |
That makes sense that it wouldn't find inherited fields or methods; I would consider this a bug. It will have to recursively check parent classes until it hits the |
Sorry for the delay on this one. I wrote a simple test case and I think our original assumption is wrong, it DOES currently find parent fields and methods. I'm using class.getMethod which is documented to recursively look at parent classes. Are you able to create a small test case that I can use to reproduce the error? |
I cannot reproduce the issue in a quick start. Indeed if I try something simple everything is OK but in my real application I used a generic-dao with multiple inheritance and the problem persist. I will close this issue and if I find something useful I will reopen it. |
I created a quick start here. Maybe someone take a look and find where is the problem. Thanks! |
I just made a commit that I believe fixes your issue. This commit changes the way Pebble looks for methods; it's much more relaxed when comparing argument types. If you get a chance to confirm the fix, that'd be great. |
I confirm that your commit resolves the issue. |
I have a
CompanyService
with a methodget(long id):Company
, I injected thecompanyService
in my template model and I I try something like this:where
Customer
has a propertyLong companyId
(my idea is to create a quick prototype of application without a fatCustomerDto
that contains aCompany
).The result is an empty ("") string without any message in console.
Any idea?
The text was updated successfully, but these errors were encountered: