Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2011-09-28 04:08:09 +0000
committerPawel Piech2011-09-28 04:08:09 +0000
commit2ef2c06e33b8053d996be7955a3bfb0623baac34 (patch)
treeede2dac95f9b8213ec8b285820d0000c5cede274 /org.eclipse.debug.tests
parent472eea319d490fe2300465bfcde19fce457b9724 (diff)
downloadeclipse.platform.debug-2ef2c06e33b8053d996be7955a3bfb0623baac34.tar.gz
eclipse.platform.debug-2ef2c06e33b8053d996be7955a3bfb0623baac34.tar.xz
eclipse.platform.debug-2ef2c06e33b8053d996be7955a3bfb0623baac34.zip
[flex-hierarchy] AIOB exception while using viewer with filtersv20110928-0408
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/FilterTransformTests.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/FilterTransformTests.java b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/FilterTransformTests.java
index 67b65d111..296ca6e8b 100644
--- a/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/FilterTransformTests.java
+++ b/org.eclipse.debug.tests/src/org/eclipe/debug/tests/viewer/model/FilterTransformTests.java
@@ -133,4 +133,20 @@ public class FilterTransformTests extends TestCase {
boolean added = transform.addFilteredIndex(TreePath.EMPTY, 0, element0);
assertFalse("Filter should not be added - should already have been there", added);
}
+
+
+ /**
+ * Test to make sure that setModelChildCount() updates internal arrays appropriately.
+ * See bug 200325.
+ */
+ public void testRegression200325() {
+ transform.setModelChildCount(TreePath.EMPTY, 2);
+ try {
+ transform.addFilteredIndex(TreePath.EMPTY, 3, new Object());
+ } catch (ArrayIndexOutOfBoundsException e) {
+ fail("AIOOBE Exception should not be thrown here, " +
+ "setModelChildCount should leave " +
+ "FilterTransform$Node in a consistent state");
+ }
+ }
}

Back to the top