---
title: "万恶的inner class, memory leak的源头之一"
author: "Aga"
date: "2009-12-17T15:35:21Z"
tags: []
categories: ["编程语言"]
slug: "inner-class-memory-leak"
draft: false
lastmod: "2009-12-17T15:35:21Z"
id: 550577
url: "https://aga.iteye.com/blog/550577"
---

非static inner class隐式的含有一个引用指向outer class。这就是为什么说内嵌类容易引发memory leak.
http://blogs.oracle.com/olaf/2007/09/18/