| /******************************************************************************* |
| * Copyright (c) 2000, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.debug.tests.targets; |
| |
| import java.util.Vector; |
| |
| /** |
| * Class for testing 'step into selection' |
| */ |
| public class StepIntoSelectionClass { |
| |
| public static void main(String[] args) { |
| StepIntoSelectionClass stepper = new StepIntoSelectionClass(); |
| stepper.step(); |
| } |
| |
| public StepIntoSelectionClass() { |
| super(); |
| } |
| |
| public void step() { |
| Vector vector = new Vector(); |
| int size= vector.size(); |
| for (int i= 0; i < 100; i++) { |
| vector.addElement(new Integer(i)); |
| } |
| method1(method2(), new String[0]); |
| } |
| |
| public void method1(int[] i, String[] s) { |
| new String("test"); |
| } |
| |
| public int[] method2() { |
| return new int[0]; |
| } |
| } |