Java.lang.String.isEmpty
From EggeWiki
I was getting the following error when I deployed a component into a JBoss container.
java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
Initially, I thought it was an issue with the classloader. Turns out, I was using a new Java 1.6 feature.
/** * Returns <tt>true</tt> if, and only if, {@link #length()} is <tt>0</tt>. * * @return <tt>true</tt> if {@link #length()} is <tt>0</tt>, otherwise * <tt>false</tt> * * @since 1.6 */ public boolean isEmpty() { return count == 0; }


