# Primitive vararg failed to override generic vararg

**URL:** <https://discuss.kotlinlang.org/t/primitive-vararg-failed-to-override-generic-vararg/4453>\
**Category:** Language Design\
**Created:** [September 4, 2017, 7:13am UTC](https://discuss.kotlinlang.org/t/primitive-vararg-failed-to-override-generic-vararg/4453 "2017-09-04T07:13:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![wumo](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wumo/32/3831_2.png) [@wumo](https://discuss.kotlinlang.org/u/wumo)\
**Post date:** [September 4, 2017, 7:52am UTC](https://discuss.kotlinlang.org/t/primitive-vararg-failed-to-override-generic-vararg/4453/3 "2017-09-04T07:52:39Z")

</div>

according to [Force / hint of Int to java.lang.Integer?](https://discuss.kotlinlang.org/t/force-hint-of-int-to-java-lang-integer/2441), maybe we can use java.lang.Integer to solve this problem.  
But this will result in other problems about Integer and Int.  
In my example, the usage of `Processor` will be like `process(Integer(1),Integer(2))` instead of `process(1,1)`.

---

_[View the full topic](https://discuss.kotlinlang.org/t/primitive-vararg-failed-to-override-generic-vararg/4453)._
