# JsName and JVMName cannot be used in the same project

**URL:** <https://discuss.kotlinlang.org/t/jsname-and-jvmname-cannot-be-used-in-the-same-project/8506>\
**Category:** Language Design\
**Created:** [July 10, 2018, 7:18am UTC](https://discuss.kotlinlang.org/t/jsname-and-jvmname-cannot-be-used-in-the-same-project/8506 "2018-07-10T07:18:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)\
**Post date:** [July 10, 2018, 8:32am UTC](https://discuss.kotlinlang.org/t/jsname-and-jvmname-cannot-be-used-in-the-same-project/8506/3 "2018-07-10T08:32:49Z")

</div>

Woops. Now that I said that, there is still one problem, but it should be fixed in 1.2.60 I think, not sure  
see here for more info:

> [@JsName annotation in common code for multiplatform projects](https://discuss.kotlinlang.org/t/jsname-annotation-in-common-code-for-multiplatform-projects/5913):
>
> Hello, We are trying to build a library to be shared between Java and JS. Behaviour of lib is to be extended in apps which will be using this lib (including in JS). Because of that I want to controll js naming in common code, which is now impossible. I saw there was a [discussion](https://discuss.kotlinlang.org/t/jsname-annotation-for-shared-code/2623), but it was abandoned 6 month ago. Consider following example (simplified): interface Processor { fun doProcess(businessObject: BusinessObject, dataProvider: DataProvider): OperationResult } data class Busines…

[https://youtrack.jetbrains.com/issue/KT-18882](https://youtrack.jetbrains.com/issue/KT-18882)  
[https://youtrack.jetbrains.com/issue/KT-24478](https://youtrack.jetbrains.com/issue/KT-24478)

---

_[View the full topic](https://discuss.kotlinlang.org/t/jsname-and-jvmname-cannot-be-used-in-the-same-project/8506)._
