Encountered a problem when using a Name object to create a SubContext.  

Shouldn't the following test pass?

public void testCreateContextWithCompositeName() throws Exception {
  Attributes attrs = new BasicAttributes(true);
  Attribute objclass = new BasicAttribute("objectClass");
  objclass.add("top");
  objclass.add("extensibleObject");
  attrs.put(objclass);

  Name relativeName = new CompositeName("cn=dns,ou=services");
  
  //ctx.createSubcontext(relativeName.toString(), attrs);//Works
  ctx.createSubcontext(relativeName, attrs);//Fails!
}


- John

Reply via email to