summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAndrew Waterman2016-01-12 15:21:27 -0800
committerAndrew Waterman2016-01-12 15:21:27 -0800
commiteada40ac04ca5505d6c64515904f1dcccb34349a (patch)
tree9c928af0f03e83c6a8ef12f8322837b0f1bd4acc /src/main
parentb7894073285ea0af5b66e53f3259b66aea9579cb (diff)
Catch yet another missing-cloneType case
Diffstat (limited to 'src/main')
-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