Joe Brothers
  • Home

Kotlin

A collection of 1 post
IntelliJ

[IntelliJ] Kotlin to Java 디컴파일

kotlin 스펙에는 문제가 없으나 java 컴파일 과정에서 문제가 있는 경우가 있다. 예를 들면 제네릭의 경우 Type erasure 때문에 함수명 등이 겹칠 수 있다. 이런 경우 IntelliJ에서 디컴파일을 해보면 문제를 파악하기 쉽다. fun List<Int>.avg(): Double = this.sum().toDouble() / this.size fun List<Double>.avg(): Double
10 9월 2023 2 min read
Page 1 of 1
Joe Brothers © 2025
  • Sign up
Powered by Ghost