---
title: "Discussion on \"The Wrapper You Never Wrote: Tracking Hidden Boxing of Kotlin Value Classes on Android\" | Hashnode"
description: "Discussion on \"The Wrapper You Never Wrote: Tracking Hidden Boxing of Kotlin Value Classes on Android\". Generics, nullability and interfaces quietly force allocations. Learn the boxing rules, then prove them with bytecode and the profiler."
url: "https://hashnode.com/posts/the-wrapper-you-never-wrote-tracking-hidden-boxing-of-kotlin-value-classes-on-android/6b0e7222e40ecffd37215246"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Wrapper You Never Wrote: Tracking Hidden Boxing of Kotlin Value Classes on Android](https://android-expert.hashnode.dev/the-wrapper-you-never-wrote-tracking-hidden-boxing-of-kotlin-value-classes-on-android?utm_source=hashnode&utm_medium=feed)

Generics, nullability and interfaces quietly force allocations. Learn the boxing rules, then prove them with bytecode and the profiler.

1d ago · 17 min read · android-expert.hashnode.dev  
Read the article

-   [#android-development](https://hashnode.com/tag/android-development)
-   [#kotlin-value-class](https://hashnode.com/tag/kotlin-value-class)
-   [#android-performance](https://hashnode.com/tag/android-performance)
-   [#memory-management](https://hashnode.com/tag/memory-management)
-   [#android-profiler](https://hashnode.com/tag/android-profiler)

## Written by

[Android Expert](https://hashnode.com/@android-expert)

@android-expert · Chennai, India

  
[View profile](https://hashnode.com/@android-expert)

Android Expert· Kotlin, Jetpack Compose & production pitfalls

Android Engineer &amp; Kotlin Advocate. 🚀 Deep dives into Jetpack Compose, Coroutines, and Clean Architecture. Turning complex code into scalable solutions. 🛠️✨

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
