[jboss-user] [Javassist] - Method returning Class<?>

Ricardo Ferreira do-not-reply at jboss.com
Thu Aug 5 06:05:35 EDT 2010

Ricardo Ferreira [http://community.jboss.org/people/rfer] created the discussion

"Method returning Class<?>"

To view the discussion, visit: http://community.jboss.org/message/556019#556019

Hello all,

I just started using Javassist, and so far I find it very flexible and easy to use.

However, I'm trying to add a method to a class, which return type should be "Class<?>". I'm getting an error when compiling the method though, a simple CannotCompileException with syntax error near "Class<?>". If just returning "Class", everything works fine. But for the sake of correctness I'd like to return "Class<?>".

Is there any way to go around this?


Reply to this message by going to Community

Start a new discussion in Javassist at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100805/fb366bc5/attachment-0001.html 

More information about the jboss-user mailing list