2 Replies Latest reply on Apr 5, 2007 2:10 PM by Derek Adams

    Compile error in trunk code

    Derek Adams Newbie

      Is anyone else getting an error when compiling the trunk code? Everything compiles fine in Eclipse, but fails when running the ant 'jar' target using jdk1.5.0_11. Here is the stacktrace:

      [java] [javac] Compiling 17 source files to C:\eclipsews\jboss-esb-trunk\JBossESB\build\classes\listeners
       [java] [javac] C:\eclipsews\jboss-esb-trunk\JBossESB\core\listeners\src\org\jboss\soa\esb\listeners\config\Generator.java:107: non-static variable this cannot be referenced from a static context
       [java] [javac] return new XMLBeansModel(doc);
       [java] [javac] ^
       [java] [javac] Note: C:\eclipsews\jboss-esb-trunk\JBossESB\core\listeners\src\org\jboss\soa\esb\listeners\config\ServicePublisher.java uses unchecked or unsafe operations.
       [java] [javac] Note: Recompile with -Xlint:unchecked for details.
       [java] [javac] 1 error
      


      The code looks fine to me, but I am not sure how to get around the error.