@@ -467,7 +467,7 @@ synchronized void assert18Project() {
467
467
jp = createProject (ONE_EIGHT_PROJECT_NAME , JavaProjectHelper .TEST_1_8_SRC_DIR .toString (), JavaProjectHelper .JAVA_SE_1_8_EE_NAME , false );
468
468
IPath lib = new Path (JavaTestPlugin .getDefault ().getFileInPlugin (new Path ("testjars" ).append ("gh275" ).append ("debug-lib.jar" )).getAbsolutePath ());
469
469
JavaProjectHelper .addLibrary (jp , lib );
470
-
470
+
471
471
cfgs .add (createLaunchConfiguration (jp , "EvalTest18" ));
472
472
cfgs .add (createLaunchConfiguration (jp , "FunctionalCaptureTest18" ));
473
473
cfgs .add (createLaunchConfiguration (jp , "EvalTestIntf18" ));
@@ -952,16 +952,20 @@ protected IJavaProject getJavaProject(String name) {
952
952
}
953
953
954
954
/**
955
- * Creates a new {@link IJavaProject} with the given name and optionally initializing it from the given
956
- * resource path from the testing bundle.
957
- * <br><br>
958
- * The project has the default <code>src</code> and <code>bin</code> folders. It is also created with a default
959
- * <code>launchConfigurations</code> folder.
955
+ * Creates a new {@link IJavaProject} with the given name and optionally initializing it from the given resource path from the testing bundle.
956
+ * <br>
957
+ * <br>
958
+ * The project has the default <code>src</code> and <code>bin</code> folders. It is also created with a default <code>launchConfigurations</code>
959
+ * folder.
960
960
*
961
- * @param name the name for the project
962
- * @param contentpath the path within the jdt.debug test bundle to initialize the source from
963
- * @param ee the level of execution environment to use
964
- * @param if an existing project should be deleted
961
+ * @param name
962
+ * the name for the project
963
+ * @param contentpath
964
+ * the path within the jdt.debug test bundle to initialize the source from
965
+ * @param ee
966
+ * the level of execution environment to use
967
+ * @param delete
968
+ * if an existing project should be deleted
965
969
* @return the new Java project
966
970
*/
967
971
protected IJavaProject createProject (String name , String contentpath , String ee , boolean delete ) throws Exception {
@@ -998,16 +1002,19 @@ protected IJavaProject createProject(String name, String contentpath, String ee,
998
1002
}
999
1003
1000
1004
/**
1001
- * Creates a new {@link IJavaProject} with the given name and initializes the contents from the given
1002
- * resource path from the testing bundle.
1003
- * <br><br>
1004
- * The project has the default <code>src</code> and <code>bin</code> folders. It is also created with a default
1005
- * <code>launchConfigurations</code> folder.
1005
+ * Creates a new {@link IJavaProject} with the given name and initializes the contents from the given resource path from the testing bundle. <br>
1006
+ * <br>
1007
+ * The project has the default <code>src</code> and <code>bin</code> folders. It is also created with a default <code>launchConfigurations</code>
1008
+ * folder.
1006
1009
*
1007
- * @param name the name for the project
1008
- * @param contentpath the path within the jdt.debug test bundle to initialize the source from
1009
- * @param ee the level of execution environment to use
1010
- * @param if an existing project should be deleted
1010
+ * @param name
1011
+ * the name for the project
1012
+ * @param contentpath
1013
+ * the path within the jdt.debug test bundle to initialize the source from
1014
+ * @param ee
1015
+ * the level of execution environment to use
1016
+ * @param delete
1017
+ * if an existing project should be deleted
1011
1018
* @return the new Java project
1012
1019
*/
1013
1020
protected IJavaProject createJavaProjectClone (String name , String contentpath , String ee , boolean delete ) throws Exception {
@@ -1053,12 +1060,14 @@ protected IJavaProject createJavaProjectClone(String name, String contentpath, S
1053
1060
}
1054
1061
1055
1062
/**
1056
- * Creates a new {@link IProject} with the given name and initializes the contents from the given
1057
- * resource path from the testing bundle.
1063
+ * Creates a new {@link IProject} with the given name and initializes the contents from the given resource path from the testing bundle.
1058
1064
*
1059
- * @param name the name for the project
1060
- * @param contentpath the path within the jdt.debug test bundle to initialize the source from
1061
- * @param if an existing project should be deleted
1065
+ * @param name
1066
+ * the name for the project
1067
+ * @param contentpath
1068
+ * the path within the jdt.debug test bundle to initialize the source from
1069
+ * @param delete
1070
+ * if an existing project should be deleted
1062
1071
* @return the new project
1063
1072
*/
1064
1073
protected IProject createProjectClone (String name , String contentpath , boolean delete ) throws Exception {
@@ -1170,45 +1179,54 @@ protected IHyperlink getHyperlink(int offset, IDocument doc) {
1170
1179
}
1171
1180
1172
1181
/**
1173
- * Launches the given configuration and waits for an event. Returns the
1174
- * source of the event. If the event is not received, the launch is
1182
+ * Launches the given configuration and waits for an event. Returns the source of the event. If the event is not received, the launch is
1175
1183
* terminated and an exception is thrown.
1176
1184
*
1177
- * @param configuration the configuration to launch
1178
- * @param waiter the event waiter to use
1185
+ * @param configuration
1186
+ * the configuration to launch
1187
+ * @param waiter
1188
+ * the event waiter to use
1179
1189
* @return Object the source of the event
1180
- * @exception Exception if the event is never received.
1190
+ * @throws CoreException
1191
+ * if the event is never received.
1181
1192
*/
1182
1193
protected Object launchAndWait (ILaunchConfiguration configuration , DebugEventWaiter waiter ) throws CoreException {
1183
1194
return launchAndWait (configuration , waiter , true );
1184
1195
}
1185
1196
1186
1197
/**
1187
- * Launches the given configuration in debug mode and waits for an event.
1188
- * Returns the source of the event. If the event is not received, the
1198
+ * Launches the given configuration in debug mode and waits for an event. Returns the source of the event. If the event is not received, the
1189
1199
* launch is terminated and an exception is thrown.
1190
1200
*
1191
- * @param configuration the configuration to launch
1192
- * @param waiter the event waiter to use
1193
- * @param register whether to register the launch
1201
+ * @param configuration
1202
+ * the configuration to launch
1203
+ * @param waiter
1204
+ * the event waiter to use
1205
+ * @param register
1206
+ * whether to register the launch
1194
1207
* @return Object the source of the event
1195
- * @exception Exception if the event is never received.
1208
+ * @throws CoreException
1209
+ * if the event is never received.
1196
1210
*/
1197
1211
protected Object launchAndWait (ILaunchConfiguration configuration , DebugEventWaiter waiter , boolean register ) throws CoreException {
1198
1212
return launchAndWait (configuration , ILaunchManager .DEBUG_MODE , waiter , register );
1199
1213
}
1200
1214
1201
1215
/**
1202
- * Launches the given configuration and waits for an event. Returns the
1203
- * source of the event. If the event is not received, the launch is
1216
+ * Launches the given configuration and waits for an event. Returns the source of the event. If the event is not received, the launch is
1204
1217
* terminated and an exception is thrown.
1205
1218
*
1206
- * @param configuration the configuration to launch
1207
- * @param mode the mode to launch the configuration in
1208
- * @param waiter the event waiter to use
1209
- * @param register whether to register the launch
1219
+ * @param configuration
1220
+ * the configuration to launch
1221
+ * @param mode
1222
+ * the mode to launch the configuration in
1223
+ * @param waiter
1224
+ * the event waiter to use
1225
+ * @param register
1226
+ * whether to register the launch
1210
1227
* @return Object the source of the event
1211
- * @exception Exception if the event is never received.
1228
+ * @throws CoreException
1229
+ * if the event is never received.
1212
1230
*/
1213
1231
protected Object launchAndWait (ILaunchConfiguration configuration , String mode , DebugEventWaiter waiter , boolean register ) throws CoreException {
1214
1232
ILaunch launch = configuration .launch (mode , null , false , register );
@@ -1367,12 +1385,13 @@ protected IJavaThread launchToBreakpoint(ILaunchConfiguration config) throws Cor
1367
1385
}
1368
1386
1369
1387
/**
1370
- * Launches the given configuration in debug mode, and waits for a breakpoint-caused
1371
- * suspend event in that program. Returns the thread in which the suspend
1372
- * event occurred.
1388
+ * Launches the given configuration in debug mode, and waits for a breakpoint-caused suspend event in that program. Returns the thread in which
1389
+ * the suspend event occurred.
1373
1390
*
1374
- * @param config the configuration to launch
1375
- * @param whether to register the launch
1391
+ * @param config
1392
+ * the configuration to launch
1393
+ * @param register
1394
+ * whether to register the launch
1376
1395
* @return thread in which the first suspend event occurred
1377
1396
*/
1378
1397
protected IJavaThread launchToBreakpoint (ILaunchConfiguration config , boolean register ) throws CoreException {
@@ -1391,7 +1410,6 @@ protected IJavaThread launchToBreakpoint(ILaunchConfiguration config, boolean re
1391
1410
* event occurred.
1392
1411
*
1393
1412
* @param mainTypeName the program to launch
1394
- * @param timeout the number of milliseconds to wait for a terminate event
1395
1413
* @return debug target in which the terminate event occurred
1396
1414
*/
1397
1415
protected IJavaDebugTarget launchAndTerminate (String mainTypeName ) throws Exception {
@@ -1551,10 +1569,11 @@ protected IJavaThread resume(IJavaThread thread, int timeout) throws Exception {
1551
1569
}
1552
1570
1553
1571
/**
1554
- * Resumes the given thread, and waits for a suspend event caused by the specified
1555
- * line breakpoint. Returns the thread in which the suspend event occurs.
1572
+ * Resumes the given thread, and waits for a suspend event caused by the specified line breakpoint. Returns the thread in which the suspend event
1573
+ * occurs.
1556
1574
*
1557
- * @param thread thread to resume
1575
+ * @param resumeThread
1576
+ * thread to resume
1558
1577
* @return thread in which the first suspend event occurs
1559
1578
*/
1560
1579
protected IJavaThread resumeToLineBreakpoint (IJavaThread resumeThread , ILineBreakpoint bp ) throws Exception {
@@ -2028,7 +2047,6 @@ protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint(String typeNa
2028
2047
/**
2029
2048
* Creates and returns a class prepare breakpoint on the type with the given fully qualified name.
2030
2049
*
2031
- * @param typeName type on which to create the breakpoint
2032
2050
* @return breakpoint
2033
2051
*/
2034
2052
protected IJavaClassPrepareBreakpoint createClassPrepareBreakpoint (String root ,
@@ -2082,10 +2100,14 @@ protected IType getType(String typeName) throws Exception {
2082
2100
/**
2083
2101
* Creates and returns a watchpoint
2084
2102
*
2085
- * @param typeNmae type name
2086
- * @param fieldName field name
2087
- * @param access whether to suspend on field access
2088
- * @param modification whether to suspend on field modification
2103
+ * @param typeName
2104
+ * type name
2105
+ * @param fieldName
2106
+ * field name
2107
+ * @param access
2108
+ * whether to suspend on field access
2109
+ * @param modification
2110
+ * whether to suspend on field modification
2089
2111
*/
2090
2112
protected IJavaWatchpoint createWatchpoint (String typeName , String fieldName , boolean access , boolean modification ) throws Exception {
2091
2113
IType type = getType (typeName );
@@ -2133,7 +2155,6 @@ protected IJavaExceptionBreakpoint createExceptionBreakpoint(String exName, bool
2133
2155
* @return a watchpoint
2134
2156
* @throws CoreException
2135
2157
*
2136
- * <p>
2137
2158
* <pre>
2138
2159
* Syntax example:
2139
2160
* Type$InnerType$MethodNameAndSignature$AnonymousTypeDeclarationNumber$FieldName
@@ -2150,7 +2171,6 @@ protected IJavaExceptionBreakpoint createExceptionBreakpoint(String exName, bool
2150
2171
* }
2151
2172
* }
2152
2173
* }</pre>
2153
- * </p>
2154
2174
* To get the anonymous toString, syntax of fullTargetName would be: <code>Foo$Inner$aMethod()V$1$anIntField</code>
2155
2175
*/
2156
2176
protected IJavaWatchpoint createNestedTypeWatchPoint (String root , String packageName , String cuName ,
@@ -2428,11 +2448,12 @@ protected IJavaThread stepIntoWithFilters(IJavaStackFrame frame) throws Exceptio
2428
2448
}
2429
2449
2430
2450
/**
2431
- * Performs a step into with filters in the given stack frame and returns when
2432
- * complete.
2451
+ * Performs a step into with filters in the given stack frame and returns when complete.
2433
2452
*
2434
- * @param whether to step thru or step return from a filtered location
2435
- * @param frame stack frame to step in
2453
+ * @param frame
2454
+ * stack frame to step in
2455
+ * @param stepThru
2456
+ * whether to step thru or step return from a filtered location
2436
2457
*/
2437
2458
protected IJavaThread stepIntoWithFilters (IJavaStackFrame frame , boolean stepThru ) throws Exception {
2438
2459
DebugEventWaiter waiter = new DebugElementKindEventWaiter (DebugEvent .SUSPEND , IJavaThread .class );
0 commit comments