2 Replies Latest reply on Sep 7, 2009 7:24 PM by souma

    please help me find the error

      Good morning,
      where is the error please?

      package example;

      public interface IHelloWorld {
      public void helloWorld();
      }

      package example;

      public class HelloWorldImpl implements IHelloWorld {
      public void helloWorld() {
      System.out.println( "Hello World!");
      }

      }

      package example;

      public class Pojo {
      public static void main(String[] args) {
      Pojo pojo = new Pojo();
      ((IHelloWorld)pojo).helloWorld();
      }
      }

      <?xml version="1.0" encoding="UTF-8" standalone="yes"?>






      example.IHelloWorld

      example.HelloWorldImpl
      new example.HelloWorldImpl(this)



        • 1. Re: please help me find the error

          <?xml version="1.0" encoding="UTF-8" standalone="yes"?>






          example.IHelloWorld

          example.HelloWorldImpl
          new example.HelloWorldImpl(this)


          • 2. Re: please help me find the error

            Sorry

            <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
            <aop>
             <introduction class="example.Pojo">
             <mixin>
             <interfaces>example.IHelloWorld</interfaces>
             <class>example.HelloWorldImpl</class>
             <construction>new example.HelloWorldImpl(this)</construction>
             </mixin>
            
             </introduction>
            
            
            </aop>