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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]