Community
Participate
Working Groups
2.1 20020728 The length of a does not include the semicolon belonging to the break statement. Same problem with the continue statement.
here're some more for the test suite: 1. while 2. for 3. switch 4. local type creation
Please let me know which test suite I should run to double check that the fixes are working. I don't understand why the switch statement is a problem. This statement is not followed by a semi-colon.
stupid me - i was wrong in all 4 cases :) sorry anyways, the test suites are: org.eclipse.jdt.ui.tests.all.AllAllTests org.eclipse.jdt.ui.tests.AutomatedSuite
from my side, no test cases directly covers this bug, I could add one for it. however, org.eclipse.jdt.ui.tests.astrewrite.ASTRewritingTest in org.eclipse.jdt.ui.tests contains over 40 test cases covering almost all nodes and doing things using their positions.
to make sure that this bug dies a nasty death and never shows up again i added: StructureSelectionActionTests::test34() StructureSelectionActionTests::test35()
Which version of JDT/UI should I use in my workspace to run these tests? Are they green? Any known problems except this position issue?
grab the latest they're disabled until this report is closed and they can be run green. in general, when you run our test suites you'll see messages dumped to the console. sth like this (just more): org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test35 disabled (regression test for bug#23118) org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test34 disabled (regression test for bug#23118) org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test33 disabled (regression test for bug#22939) org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test32 disabled (regression test for bug#22939)
Fixed and released in 2.1 stream. I ran these two tests successfully org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test35 disabled (regression test for bug#23118) org.eclipse.jdt.ui.tests.actions.StructureSelectionActionTests::test34 disabled (regression test for bug#23118) + the ones I added in ASTConverterTests.
Verified.
Regression tests added (test0373, test0374)