summaryrefslogtreecommitdiff
path: root/heat/TypeBundle.java
diff options
context:
space:
mode:
Diffstat (limited to 'heat/TypeBundle.java')
-rw-r--r--heat/TypeBundle.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/heat/TypeBundle.java b/heat/TypeBundle.java
index ac00e71..1867e0d 100644
--- a/heat/TypeBundle.java
+++ b/heat/TypeBundle.java
@@ -25,8 +25,12 @@ class TypeBundle {
}
@Override public boolean equals(Object other) {
+ TypeBundle tb;
return (other instanceof TypeBundle) &&
- ((TypeBundle) other).type == this.type;
+ (tb = (TypeBundle) other).type == this.type &&
+ (tb.instance == this.instance ||
+ (tb.instance != null && tb.instance.getExtend() != null &&
+ tb.instance.getExtend().equals(this.instance)));
}
public boolean isClass() {