diff options
| author | Andrew Waterman | 2016-01-12 15:21:27 -0800 |
|---|---|---|
| committer | Andrew Waterman | 2016-01-12 15:21:27 -0800 |
| commit | eada40ac04ca5505d6c64515904f1dcccb34349a (patch) | |
| tree | 9c928af0f03e83c6a8ef12f8322837b0f1bd4acc /src/main/scala | |
| parent | b7894073285ea0af5b66e53f3259b66aea9579cb (diff) | |
Catch yet another missing-cloneType case
Diffstat (limited to 'src/main/scala')
| -rw-r--r-- | src/main/scala/Chisel/Aggregate.scala | 2 |
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 |
