Skip to content

Commit

Permalink
Builderreflectionfix (#515)
Browse files Browse the repository at this point in the history
* change builder for bundle reflection fix

* fixed bug -- should be not assignable
  • Loading branch information
shunshou committed Feb 17, 2017
1 parent 40da278 commit 50db343
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private[chisel3] trait HasId extends InstanceId {
}
val valNames = getValNames(this.getClass)
def isPublicVal(m: java.lang.reflect.Method) =
m.getParameterTypes.isEmpty && valNames.contains(m.getName)
m.getParameterTypes.isEmpty && valNames.contains(m.getName) && !m.getDeclaringClass.isAssignableFrom(rootClass)
this.getClass.getMethods.sortWith(_.getName < _.getName).filter(isPublicVal(_))
}
}
Expand Down

0 comments on commit 50db343

Please sign in to comment.