<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Neugens,
<blockquote cite="mid:4e54de53.44c9e30a.3c84.2d37@mx.google.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=utf-8">
The vm doesn't terminate.<br>
<br>
One VM to rule them all: the instances are separated via the
appcontext, but there is just one server vm running.<br>
</blockquote>
I'm not sure that's correct behavior. According to javadoc of
java.lang.System#exit: "Terminates the currently running Java
Virtual Machine.".<br>
<br>
Regards, Pavel<br>
<blockquote cite="mid:4e54de53.44c9e30a.3c84.2d37@mx.google.com"
type="cite"><br>
Cheers,<br>
Mario<br>
-- <br>
Sent from HTC Desire...<br>
<br>
pgp key: <a moz-do-not-send="true" href="http://subkeys.pgp.net">http://subkeys.pgp.net</a>/
PGP Key ID: 80F240CF<br>
Fingerprint: BA39 9666 94EC 8B73 27FA Â FC7C 4086 63E3 80F2 40CF<br>
<br>
<a moz-do-not-send="true" href="http://www.icedrobot.org">http://www.icedrobot.org</a><br>
<br>
Proud GNU Classpath developer: <a moz-do-not-send="true"
href="http://www.classpath.org">http://www.classpath.org</a>/<br>
Read About us at: <a moz-do-not-send="true"
href="http://planet.classpath.org">http://planet.classpath.org</a><br>
OpenJDK: <a moz-do-not-send="true"
href="http://openjdk.java.net/projects/caciocavallo">http://openjdk.java.net/projects/caciocavallo</a>/<br>
<br>
Please, support open standards:<br>
<a moz-do-not-send="true" href="http://endsoftpatents.org">http://endsoftpatents.org</a>/<br>
<br>
<br>
----- Reply message -----<br>
Da: "Pavel Porvatov" <a class="moz-txt-link-rfc2396E" href="mailto:pavel.porvatov@oracle.com"><pavel.porvatov@oracle.com></a><br>
Data: mer, ago 24, 2011 12:57<br>
Oggetto: <Swing Dev> Is the following code supposed to leak?<br>
A: "Clemens Eisserer" <a class="moz-txt-link-rfc2396E" href="mailto:linuxhippy@gmail.com"><linuxhippy@gmail.com></a><br>
Cc: <a class="moz-txt-link-rfc2396E" href="mailto:swing-dev@openjdk.java.net"><swing-dev@openjdk.java.net></a><br>
<br>
<br>
Hi Clemens,<br>
> Hi Pavel,<br>
><br>
> Â Â In common case you shouldn't remove listeners of course.
But in<br>
> Â Â your case you must remove listeners because of editor is
shared<br>
> Â Â between all JTextComponents (see javadoc of the<br>
> Â Â JTextComponent#getActions method and
BasicTextUI#getEditorKit<br>
> Â Â implementation). So you added listeners not to a
JTextComponent<br>
> Â Â instance, but to the shared editor.<br>
><br>
><br>
> Thanks a lot for clarification, I wasn't sure this behaviour
is <br>
> intended :/<br>
> Seems I have to adopt the jfc-demo Notepad to not leak memory
when <br>
> running on caciocavallo-web ;)<br>
I took a look at the Notepad demo and didn't find any problems. It
adds <br>
listeners only when the demo starts and there is no need to remove
<br>
listeners, because the demo closes via System.exit(0). Could you
please <br>
explain how did you get memory leak in the demo?<br>
<br>
Regards, Pavel<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>