Author: dgeraskov
Date: 2012-03-21 08:35:42 -0400 (Wed, 21 Mar 2012)
New Revision: 39692
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JpaUtil.java
Log:
https://issues.jboss.org/browse/JBIDE-11364
Check interface names that could be not in classpath
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JpaUtil.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JpaUtil.java 2012-03-21
10:57:12 UTC (rev 39691)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.jpt.core/src/org/jboss/tools/hibernate/jpt/core/internal/context/java/JpaUtil.java 2012-03-21
12:35:42 UTC (rev 39692)
@@ -36,6 +36,8 @@
String[] interfaces = type.getSuperInterfaceNames();
List<String> resolvedInterfaceNames = new LinkedList<String>();
for (int i = 0; i < interfaces.length; i++) {
+ if (interfaceName.equals(interfaces[i]))
+ return true;
String[][] resolvedInterfaces = type.resolveType(interfaces[i]);
if (resolvedInterfaces != null){
for (String[] parts : resolvedInterfaces) {