Gunnar wrote:
For enum types, it should actually go to the next block (else if ( type instanceof CustomType ) { ... }) rather than exiting at the line in your stack trace.
We also did some debugging and came to the same question. Apparently, the program does not go into the else branch.
Meanwhile we have prepared a minimal example to reproduce the issue. It comes as a WAR so that you can simply put it into Glassfish's auto deploy dir. Unfortunately, its size is about 20MB (due to a lot of dependencies). How could we send you this? Or should we open a Jira issue and attach the WAR?
Thorsten