@Formula of enum type results in ClassCastException

Description

results in:

Environment

None

Activity

Show:
Andreas Berger
August 29, 2014, 8:08 AM
Andrea Boriero
September 15, 2014, 2:25 PM

The build fails.
The test failing is org.hibernate.test.annotations.enumerated.EnumeratedTypeTest > testTrimmedEnumChar FAILED
The error is:
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "PRIMARY_KEY_C ON PUBLIC.ENTITYENUM(ID)"; SQL statement:
insert into EntityEnum (id, trimmed) values(1, 'A') [23001-145]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:158)
at org.h2.index.TreeIndex.add(TreeIndex.java:56)
at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:49)
at org.h2.table.RegularTable.addRow(RegularTable.java:125)
at org.h2.command.dml.Insert.insertRows(Insert.java:126)
at org.h2.command.dml.Insert.update(Insert.java:86)
at org.h2.command.CommandContainer.update(CommandContainer.java:69)
at org.h2.command.Command.executeUpdate(Command.java:201)
at org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:178)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:153)
at org.hibernate.test.annotations.enumerated.EnumeratedTypeTest.testTrimmedEnumChar(EnumeratedTypeTest.java:360)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:62)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74)

Andreas Berger
September 15, 2014, 7:10 PM
Gail Badner
October 30, 2014, 11:55 AM

Closing issues in preparation for releasing 4.3.7.

Assignee

Andrea Boriero

Reporter

Andreas Berger

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure