What is the expected behaviour of the below code:
Pod p := Pod.find("sys"); p.uri.plusName("res", true);
Because I get this exception
sys::IndexErr: java.lang.ArrayIndexOutOfBoundsException: -1 fan.sys.Uri.plusName (Uri.java:1162)
I would have assumed that, even though there was only a host portion, that the plusXXX methods would add a leading slash, or is there a reason for not doing this?
Just an oversight. I pushed a fix, changeset
Login or Signup to reply.
geo Mon 2 Jul 2012
What is the expected behaviour of the below code:
Pod p := Pod.find("sys"); p.uri.plusName("res", true);
Because I get this exception
I would have assumed that, even though there was only a host portion, that the plusXXX methods would add a leading slash, or is there a reason for not doing this?
brian Mon 2 Jul 2012
Just an oversight. I pushed a fix, changeset