Lines 19-24
Link Here
|
19 |
import org.eclipse.core.resources.IMarker; |
19 |
import org.eclipse.core.resources.IMarker; |
20 |
import org.eclipse.core.runtime.CoreException; |
20 |
import org.eclipse.core.runtime.CoreException; |
21 |
import org.eclipse.core.runtime.IPath; |
21 |
import org.eclipse.core.runtime.IPath; |
|
|
22 |
import org.eclipse.jdt.core.IJavaProject; |
22 |
import org.eclipse.jdt.core.JavaCore; |
23 |
import org.eclipse.jdt.core.JavaCore; |
23 |
import org.eclipse.jdt.core.JavaModelException; |
24 |
import org.eclipse.jdt.core.JavaModelException; |
24 |
import org.eclipse.jdt.core.tests.util.Util; |
25 |
import org.eclipse.jdt.core.tests.util.Util; |
Lines 402-405
Link Here
|
402 |
fullBuild(projectPath); |
403 |
fullBuild(projectPath); |
403 |
expectingNoProblems(); |
404 |
expectingNoProblems(); |
404 |
} |
405 |
} |
|
|
406 |
|
407 |
/** |
408 |
* @bug 164707: ArrayIndexOutOfBoundsException in JavaModelManager if source level == 6.0 |
409 |
* @test Ensure that AIIOB does not longer happen with invalid source level string |
410 |
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=164707" |
411 |
*/ |
412 |
public void testBug164707() throws JavaModelException { |
413 |
IPath projectPath = env.addProject("Project"); //$NON-NLS-1$ |
414 |
IJavaProject javaProject = env.getJavaProject(projectPath); |
415 |
javaProject.setOption(JavaCore.COMPILER_SOURCE, "invalid"); |
416 |
env.addExternalJars(projectPath, Util.getJavaClassLibs()); |
417 |
fullBuild(projectPath); |
418 |
expectingNoProblems(); |
419 |
} |
405 |
} |
420 |
} |