# Kotlin to Java bytecode. Can not understand one variable

**URL:** <https://discuss.kotlinlang.org/t/kotlin-to-java-bytecode-can-not-understand-one-variable/22503>\
**Category:** Uncategorized\
**Created:** [July 24, 2021, 12:06pm UTC](https://discuss.kotlinlang.org/t/kotlin-to-java-bytecode-can-not-understand-one-variable/22503 "2021-07-24T12:06:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirill\_nn](https://avatars.discourse-cdn.com/v4/letter/k/977dab/32.png) [@kirill\_nn](https://discuss.kotlinlang.org/u/kirill_nn)\
**Post date:** [July 24, 2021, 12:06pm UTC](https://discuss.kotlinlang.org/t/kotlin-to-java-bytecode-can-not-understand-one-variable/22503/1 "2021-07-24T12:06:58Z")

</div>

Kotlin code:

```auto
fun main(args: Array<String>) {
    val a = 42.9
    println("${a::class.simpleName}")
}

```

Java Decompile code:

```auto
   public static final void main(@NotNull String[] args) {
      Intrinsics.checkNotNullParameter(args, "args");
      double a = 42.9D;
      String var3 = String.valueOf(Reflection.getOrCreateKotlinClass(Double.TYPE).getSimpleName());
      boolean var4 = false;
      System.out.println(var3);
   }

```

For what “boolean var4 = false” ???

---

<div class="post-metadata">

**Author:** ![madmax1028](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/madmax1028/32/3335_2.png) [@madmax1028](https://discuss.kotlinlang.org/u/madmax1028)\
**Post date:** [July 24, 2021, 4:42pm UTC](https://discuss.kotlinlang.org/t/kotlin-to-java-bytecode-can-not-understand-one-variable/22503/2 "2021-07-24T16:42:37Z")

</div>

From what I remember they are used to pause debugger on breakpoints inside inline functions. I can’t find a source right now, but someone commented on that before.

---

<div class="post-metadata">

**Author:** ![chipays](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@chipays](https://discuss.kotlinlang.org/u/chipays)\
**Post date:** [July 24, 2021, 6:20pm UTC](https://discuss.kotlinlang.org/t/kotlin-to-java-bytecode-can-not-understand-one-variable/22503/3 "2021-07-24T18:20:04Z")

</div>

You’re correct, disabling the inline optimization in the compiler will not generated the

```auto
  L3
    ICONST_0
    ISTORE 4

```

which the decompiler converts to a boolean.
