You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Steve Davis <sd...@broadsoft.com> on 2005/09/07 17:32:30 UTC

Enum.forString behavior change in XML Beans v2 ?

This code fragment correctly detected an invalid enum value in XML Beans
version 1, but now with version 2, no exception is thrown. The code
still compiles and executes, but the behavior is different (validation
fails later).

What else has changed? Is there a list somewhere so we can make
appropriate changes to our code?


try
{
  authorization.setServiceName(GroupService.Enum.forString(svcName));
}
catch (Exception e)
{
  throw new CLIException("Invalid service name: " + svcName);
}



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org