-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: CGLIB bug or feature?
PostPosted: Tue Sep 02, 2003 11:13 am 
Newbie

Joined: Tue Sep 02, 2003 11:03 am
Posts: 3
While using hibernate with CGLIB-generated proxies, I found out that one proxy is generated for classes in the same inheritance hierarchy. This can create problems.

Suppose we have classes A, B subclass of A and C subclass of A. Suppose further that A has a method foo(), B has also a method foo() and C has a method foo(int); then CGLIB complains for the ambiguity and fails to generate proxies.

I wonder is this a bug or a feature?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 7:14 am 
Are you sure it is
"void foo() and void foo(int)" ?

It must work without problems,
but "void foo() and int foo() " will throw CodeGenerationException


Top
  
 
 Post subject:
PostPosted: Thu Sep 04, 2003 9:05 am 
Newbie

Joined: Tue Sep 02, 2003 11:03 am
Posts: 3
You are right, sorry for the typo...

Now, assuming that one proxy is generated, the exception is to be expected, as the proxy would try to overload on the return type only.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.