From: Ingo B. <in...@ji...> - 2013-05-05 02:50:27
|
Hey The Name(String s, Name origin) constructor copies too many labels when origin has been created by stripping a label. Example code: Name origin = Name.fromString("sub.domain.example."); Name strippedOrigin = new Name(origin, 1); System.out.println(new Name("prepend", strippedOrigin)); Actual output: prepend.sub.domain.example. Expected output: prepend.domain.example. Patch with new unit-test is attached. Regards, Ingo |