I don't know if this bug is in the right project.
Here is a test case to reproduce the problem: JPA_78Test.java.