[jboss-dev-forums] [Design of JBoss ESB] - Compile error in trunk code
derek.adams
do-not-reply at jboss.com
Thu Apr 5 13:49:46 EDT 2007
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035111#4035111
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035111
More information about the jboss-dev-forums
mailing list