summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortjung2012-04-19 04:21:09 (EDT)
committertjung2012-04-19 04:21:09 (EDT)
commit429f6ff06741a55b97f0e926ba61b232e9b3f1fa (patch)
tree20bd40e7aec2dfcd57a24f9b16d5aba8238be8dd
parent85713f9fbad1c5d8d9c3aed91132682764d2fcb9 (diff)
downloadorg.eclipse.etrice-429f6ff06741a55b97f0e926ba61b232e9b3f1fa.zip
org.eclipse.etrice-429f6ff06741a55b97f0e926ba61b232e9b3f1fa.tar.gz
org.eclipse.etrice-429f6ff06741a55b97f0e926ba61b232e9b3f1fa.tar.bz2
[core.room] fix in check of attribute
-rw-r--r--plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
index ec6e000..cb705b0 100644
--- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
+++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java
@@ -36,6 +36,7 @@ import org.eclipse.etrice.core.room.LogicalSystem;
import org.eclipse.etrice.core.room.Message;
import org.eclipse.etrice.core.room.NonInitialTransition;
import org.eclipse.etrice.core.room.Port;
+import org.eclipse.etrice.core.room.PortClass;
import org.eclipse.etrice.core.room.PrimitiveType;
import org.eclipse.etrice.core.room.ProtocolClass;
import org.eclipse.etrice.core.room.RoomClass;
@@ -163,6 +164,10 @@ public class RoomJavaValidator extends AbstractRoomJavaValidator {
// no circle possible
return;
+ if (att.eContainer() instanceof PortClass)
+ // no circle possible
+ return;
+
if (!(att.eContainer() instanceof DataClass)) {
assert(false): "unexpected parent class";
return;