DrJava DefinitionsPaneMemoryLeakTest fails on Mac

I submitted a bugfix for a problem with the debug panel when no
debugger is available

I noticed that on the Mac, the DefinitionsPaneMemoryLeakTest now

[cc] [junit] DefinitionsPaneMemoryLeakTest 26.92 sec
[junit] Testsuite: edu.rice.cs.drjava.ui.DefinitionsPaneMemoryLeakTest
[junit] Tests run: 1, Failures: 1, Errors: 0
[junit] ————- Standard Error —————–
[junit] Skipped analysing class java.security.ProtectionDomain
because of java.lang.AssertionError
[junit] ————- —————- —————
[junit] Testcase:
testDocumentPaneMemoryLeak(edu.rice.cs.drjava.ui.DefinitionsPaneMemoryLeakTest): FAILED
[junit] Document 0 leaked:
[junit] private static sun.awt.AppContext
[junit] sun.awt.AppContext@4998a455-table->
[junit] java.util.HashMap@7f1bfcfc-table->

[junit] [Ljava.beans.PropertyChangeListener;@67b50846-[373]->
[junit] javax.swing.JViewport$1@7ceade87-this$0->
[junit] javax.swing.JViewport@48be3a5e-component->
[junit] java.util.ArrayList@6b333f77-elementData->
[junit] [Ljava.lang.Object;@559b52d3-[0]->
[junit] edu.rice.cs.drjava.ui.DefinitionsPane@2a38d0a8-_doc->
[junit] edu.rice.cs.drjava.model.DefaultGlobalModel$ConcreteOpenDefDoc@557e5cbd
[junit] at

It passes on Windows, and I haven’t tried it on Linux. I rolled
back as far as revision 5266, which was from June 3, 2010, and it was
still failing on the Mac. I have a feeling that something must have
changed in Mac OS (Lion) or the Java version I have running
(1.6.0_29). I know I’ve successfully run the unit tests many times
since then on the Mac, even on my MacBook Pro. I even think I have run
them successfully on Mac OS Lion.

It would be great if I could still run the unit tests on an older Mac, with an older Mac OS. I’ll dig into this, but it may take some time.


About Mathias

Software development engineer. Principal developer of DrJava. Recent Ph.D. graduate from the Department of Computer Science at Rice University.
This entry was posted in DrJava. Bookmark the permalink.

5 Responses to DrJava DefinitionsPaneMemoryLeakTest fails on Mac

Leave a Reply