Hello,
I get the following exception:
Exception in thread "main" java.lang.NoSuchMethodError:
mycompany.Type.getValue()Ljava/lang/String;
mycompany.Type is only
public interface Type
{
Object getValue();
}
The generated javassist method body is the following:
{
mycompany.Type type = getType();
Object value = type.getValue();
return ($r)value;
}
the return type of the method is String, so ($r) should do a cast to String.
Where is the error?
Why tries Javassist to call the getValue()Ljava/lang/String method instead of
getValue()Ljava/lang/Object
?
Thanks,
Norbi
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853770#3853770
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853770
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user