[
https://issues.jboss.org/browse/JBIDE-8071?page=com.atlassian.jira.plugin...
]
Vitali Yemialyanchyk commented on JBIDE-8071:
---------------------------------------------
I can't understand how to reproduce the issue... In case of use external process for
codegen we use just user configured classpath, and we launch code generation in separate
external process, so the user can use as Hibernate 3.2-3.5 with Hibernate Tools Core
compiled against 3.2-3.5 and the user can use Hibernate 3.6 with Hibernate Tools Core
compiled against 3.6 or against 3.5 - and I do not see how use external process for
codegen could be a reason of IncompatibleClassChangeError...
The user can configure his classpath to use Hibernate Tools Core compiled against 3.6 and
Hibernate 3.2-3.5 - but this is an error in classpath configuration.
External process for hibernate code generation cannot work with
3.2-3.5 and 3.6 at the same time
------------------------------------------------------------------------------------------------
Key: JBIDE-8071
URL:
https://issues.jboss.org/browse/JBIDE-8071
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Hibernate
Affects Versions: 3.2.0.CR1
Reporter: Max Andersen
Assignee: Max Andersen
Priority: Critical
Fix For: 3.3.x
If you compile Hibernate Tools against 3.5 it cant run on 3.6; and if you compile against
3.6 it can't run on 3.5 (even though the code is source compatible)
Since we want to support Hibernate JPA 2 we need to upgrade to 3.6 but then we cannot at
the same time provide the "external process for hibernate code generation" since
that will almost always collide with users classpath and thus you get errors like:
java.lang.IncompatibleClassChangeError: Found class org.hibernate.cfg.Mappings, but
interface was expected
Because the interface Mappings in 3.6 is a class in 3.5 and previous versions.
I don't know a good way to work around this thus for now we will have rollback
JBIDE-6423
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira