Hi,

the method names would need to be different. The mixin methods get compiled 
into the main class, so for the examples you show you would end up with 
something like:


  | public  HelloWorld implements Test, Test1
  | {
  |     //Original HelloWorld code
  | 
  |    //Added during instrumentation
  |    Test test = new HelloWorldImpl(this);
  |    Test1 test1 = new HelloWorldImpl1(this);
  | 
  |    public String getWorldName()
  |    {
  |        return test.getWorldName();
  |    }
  | 
  |    public String getWorldName()
  |    {
  |        return test1.getWorldName();
  |    }
  | 
  | }
  | 

So you end up with two methods with the same signature, which is not allowed. 
This is similar to if in "normal" java you wanted to implement two interfaces 
with the same method names; you would only implement one "copy" of the method.

Kabir

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860870#3860870

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860870


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to