Richard Frovarp schrieb: > Jonathan Addison wrote: >> Hi Devs, >> >> Has anyone else had a problem building after the recent commits? Is >> this a Java 1.4/1.5 issue? >> >> Thanks for any hints. >> >> Jonathan >> >> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\usecases\Edit.java:40: >> cannot resolve symbol >> symbol : method valueOf (short) >> location: class java.lang.Short >> setParameter(INCLUDE_ITEM_NUMBER, >> Short.valueOf(news.getIncludeItemNumber())); >> >> >> ^ >> C:\src\lenya-1.4.x\src\modules\news\java\src\org\apache\lenya\modules\news\useca >> >> ses\Edit.java:44: cannot resolve symbol >> symbol : method valueOf (int) >> location: class java.lang.Integer >> numbers.add(Integer.valueOf(i)); >> ^ >> 2 errors >> >> BUILD FAILED > > These functions are 1.5+. If you are building against 1.4, then you > don't have these functions. valueOf(String) has been there from the > beginning. These valueOf(primitive) appear to be 1.5+.
Sorry for that. I didn't know that the Eclipse JDK compliance setting doesn't consider the method availablility. I hope this will be fixed in future versions :( http://forum.java.sun.com/thread.jspa?threadID=758690&messageID=4334564 -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]