summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/scala/Chisel/Aggregate.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/Chisel/Aggregate.scala b/src/main/scala/Chisel/Aggregate.scala
index 35b8b4e5..4be7095f 100644
--- a/src/main/scala/Chisel/Aggregate.scala
+++ b/src/main/scala/Chisel/Aggregate.scala
@@ -331,7 +331,7 @@ class Bundle extends Aggregate(NO_DIR) {
try {
constructor.newInstance(_parent.get).asInstanceOf[this.type]
} catch {
- case _: java.lang.reflect.InvocationTargetException =>
+ case _: java.lang.reflect.InvocationTargetException | _: java.lang.IllegalArgumentException =>
Builder.error(s"Parameterized Bundle ${this.getClass} needs cloneType method. You are probably using " +
"an anonymous Bundle object that captures external state and hence is un-cloneTypeable")
this