> In fact I can compile it in eclipse with java 5, so this problem appears > only when compiling with maven. ... > I don't get this error under eclipse(neither under jd5 or jdk6) only > when building with maven
Maven uses the compiler in your JDK while Eclipse uses its own compiler. This is not a Maven issue but rather a difference between the Eclipse compiler and Sun's compiler. > if((Object)stack.getBean() instanceof String) > > Then it compiles OK both with jdk5 and jdk6. but this is both ugly and dirty I'd do this if it works. Wayne --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
