This function throws a StringIndexOutOfBounds if the words collection is empty ...
class SimpleNamingContext ... { ...
public static String joinWithString(String seperator, Collection<?>
words) { String ret = ""; for (Object s: words) { ret+=s.toString()+seperator; } return ret.substring(0, ret.length()-seperator.length()); }
Comment #1
Posted on Sep 19, 2010 by Swift PandaApologies for the long delay - the issue tracker wasn't hooked up to the group (still not sure it's working).
I can't find SimpleNamingContext or joinWithString (no surprise as simple-jndi didn't support generics). Could you explain this more as to the osjava related code?
Comment #2
Posted on Sep 19, 2010 by Swift BearHmm perhaps I submitted this to the wrong project... the name SimpleNamingContext must have confused me into thinking this came from simple-jndi when in fact it came from the Spring Project.
My apologies ...
Comment #3
Posted on Sep 20, 2010 by Swift PandaNo problem - sorry again for the hideously long time it took me to respond.
Status: Invalid
Labels:
Type-Defect
Priority-Medium