2727import org .eclipse .debug .core .model .IStackFrame ;
2828import org .eclipse .debug .core .model .IValue ;
2929import org .eclipse .debug .core .sourcelookup .ISourceContainer ;
30+ import org .eclipse .debug .ui .DebugUITools ;
3031import org .eclipse .jdt .core .IJavaProject ;
3132import org .eclipse .jdt .debug .core .IJavaStackFrame ;
3233import org .eclipse .jdt .debug .core .IJavaThread ;
@@ -186,6 +187,10 @@ public void testTranslateContainers() throws Exception {
186187 * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=346116
187188 */
188189 public void testInspectClassFileFromJar () throws Exception {
190+ boolean stepFilterPref = DebugUITools .isUseStepFilters ();
191+ if (stepFilterPref ) {
192+ DebugUITools .setUseStepFilters (false );
193+ }
189194 createLaunchConfiguration (fgJarProject , LAUNCHCONFIGURATIONS , A_RUN_JAR );
190195 createLineBreakpoint (21 , A_RUN_JAR );
191196 ILaunchConfiguration config = getLaunchConfiguration (fgJarProject , LAUNCHCONFIGURATIONS , A_RUN_JAR );
@@ -201,6 +206,9 @@ public void testInspectClassFileFromJar() throws Exception {
201206 assertEquals ("the name of the type being inspected must be a.JarClass" , "a.JarClass" , value .getReferenceTypeName ());
202207 }
203208 finally {
209+ if (!stepFilterPref ) {
210+ DebugUITools .setUseStepFilters (false );
211+ }
204212 terminateAndRemove (thread );
205213 }
206214 }
@@ -211,6 +219,10 @@ public void testInspectClassFileFromJar() throws Exception {
211219 * See https://bugs.eclipse.org/bugs/show_bug.cgi?id=346116
212220 */
213221 public void testShowClassFileFromJar () throws Exception {
222+ boolean stepFilterPref = DebugUITools .isUseStepFilters ();
223+ if (stepFilterPref ) {
224+ DebugUITools .setUseStepFilters (false );
225+ }
214226 createLaunchConfiguration (fgJarProject , LAUNCHCONFIGURATIONS , A_RUN_JAR );
215227 createLineBreakpoint (21 , A_RUN_JAR );
216228 ILaunchConfiguration config = getLaunchConfiguration (fgJarProject , LAUNCHCONFIGURATIONS , A_RUN_JAR );
@@ -235,6 +247,9 @@ public void testShowClassFileFromJar() throws Exception {
235247 assertEquals ("we should have found a file named a.JarClass.class" , "JarClass.class" , ((ClassFile ) source ).getElementName ());
236248 }
237249 finally {
250+ if (!stepFilterPref ) {
251+ DebugUITools .setUseStepFilters (false );
252+ }
238253 terminateAndRemove (thread );
239254 }
240255 }
0 commit comments