Lines 9204-9211
Link Here
|
9204 |
"----------\n" + /* expectedErrOutputString */ |
9204 |
"----------\n" + /* expectedErrOutputString */ |
9205 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/Y.java (at line 3)\n" + |
9205 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/Y.java (at line 3)\n" + |
9206 |
" System.out.println(X.CONST);\n" + |
9206 |
" System.out.println(X.CONST);\n" + |
9207 |
" ^^^^^^^\n" + |
9207 |
" ^^^^^\n" + |
9208 |
"X.CONST cannot be resolved to a variable\n" + |
9208 |
"CONST cannot be resolved or is not a field\n" + |
9209 |
"----------\n" + |
9209 |
"----------\n" + |
9210 |
"1 problem (1 error)", |
9210 |
"1 problem (1 error)", |
9211 |
false /* shouldFlushOutputDirectory */, |
9211 |
false /* shouldFlushOutputDirectory */, |
Lines 9447-9458
Link Here
|
9447 |
sourceFilePath /* commandLine */ |
9447 |
sourceFilePath /* commandLine */ |
9448 |
+ " -proc:none " + commonOptions, |
9448 |
+ " -proc:none " + commonOptions, |
9449 |
"" /* expectedOutOutputString */, |
9449 |
"" /* expectedOutOutputString */, |
9450 |
"----------\n" + /* expectedErrOutputString */ |
9450 |
"----------\n" + |
9451 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/Y.java (at line 3)\n" + |
9451 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/Y.java (at line 3)\n" + |
9452 |
" System.out.println(X.CONST);\n" + |
9452 |
" System.out.println(X.CONST);\n" + |
9453 |
" ^^^^^^^\n" + |
9453 |
" ^^^^^\n" + |
9454 |
"X.CONST cannot be resolved to a variable\n" + |
9454 |
"CONST cannot be resolved or is not a field\n" + |
9455 |
"----------\n" + |
9455 |
"----------\n" + |
9456 |
"1 problem (1 error)", |
9456 |
"1 problem (1 error)", |
9457 |
false /* shouldFlushOutputDirectory */, |
9457 |
false /* shouldFlushOutputDirectory */, |
9458 |
null /* progress */); |
9458 |
null /* progress */); |
Lines 9729-9789
Link Here
|
9729 |
public void test241_jar_ref_in_jar(){ |
9729 |
public void test241_jar_ref_in_jar(){ |
9730 |
createCascadedJars(); |
9730 |
createCascadedJars(); |
9731 |
this.runNegativeTest( |
9731 |
this.runNegativeTest( |
9732 |
new String[] { |
9732 |
new String[] { |
9733 |
"src/p/X.java", |
9733 |
"src/p/X.java", |
9734 |
"package p;\n" + |
9734 |
"package p;\n" + |
9735 |
"/** */\n" + |
9735 |
"/** */\n" + |
9736 |
"public class X {\n" + |
9736 |
"public class X {\n" + |
9737 |
" int i = R.R2;\n" + |
9737 |
" int i = R.R2;\n" + |
9738 |
" int j = R.R3;\n" + |
9738 |
" int j = R.R3;\n" + |
9739 |
"}", |
9739 |
"}", |
9740 |
}, |
9740 |
}, |
9741 |
"\"" + OUTPUT_DIR + File.separator + "src/p/X.java\"" |
9741 |
"\"" + OUTPUT_DIR + File.separator + "src/p/X.java\"" |
9742 |
+ " -cp \"" + LIB_DIR + File.separator + "lib1.jar\"" |
9742 |
+ " -cp \"" + LIB_DIR + File.separator + "lib1.jar\"" |
9743 |
+ " -cp \"" + LIB_DIR + File.separator + "lib3.jar\"" |
9743 |
+ " -cp \"" + LIB_DIR + File.separator + "lib3.jar\"" |
9744 |
+ " -sourcepath \"" + OUTPUT_DIR + File.separator + "src\"" |
9744 |
+ " -sourcepath \"" + OUTPUT_DIR + File.separator + "src\"" |
9745 |
+ " -1.5 -g -preserveAllLocals" |
9745 |
+ " -1.5 -g -preserveAllLocals" |
9746 |
+ " -proceedOnError -referenceInfo" |
9746 |
+ " -proceedOnError -referenceInfo" |
9747 |
+ " -d \"" + OUTPUT_DIR + File.separator + "bin\" ", |
9747 |
+ " -d \"" + OUTPUT_DIR + File.separator + "bin\" ", |
9748 |
"", |
9748 |
"", |
9749 |
"----------\n" + |
9749 |
"----------\n" + |
9750 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/src/p/X.java (at line 5)\n" + |
9750 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/src/p/X.java (at line 5)\n" + |
9751 |
" int j = R.R3;\n" + |
9751 |
" int j = R.R3;\n" + |
9752 |
" ^^^^\n" + |
9752 |
" ^^\n" + |
9753 |
"R.R3 cannot be resolved to a variable\n" + |
9753 |
"R3 cannot be resolved or is not a field\n" + |
9754 |
"----------\n" + |
9754 |
"----------\n" + |
9755 |
"1 problem (1 error)", |
9755 |
"1 problem (1 error)", |
9756 |
true); |
9756 |
true); |
9757 |
} |
9757 |
} |
9758 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=97332 - jars pointed by jars |
9758 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=97332 - jars pointed by jars |
9759 |
// using only links, we adopt a depth first algorithm |
9759 |
// using only links, we adopt a depth first algorithm |
9760 |
public void test242_jar_ref_in_jar(){ |
9760 |
public void test242_jar_ref_in_jar(){ |
9761 |
createCascadedJars(); |
9761 |
createCascadedJars(); |
9762 |
this.runNegativeTest( |
9762 |
this.runNegativeTest( |
9763 |
new String[] { |
9763 |
new String[] { |
9764 |
"src/p/X.java", |
9764 |
"src/p/X.java", |
9765 |
"package p;\n" + |
9765 |
"package p;\n" + |
9766 |
"/** */\n" + |
9766 |
"/** */\n" + |
9767 |
"public class X {\n" + |
9767 |
"public class X {\n" + |
9768 |
" int i = R.R2;\n" + |
9768 |
" int i = R.R2;\n" + |
9769 |
" int j = R.R3;\n" + |
9769 |
" int j = R.R3;\n" + |
9770 |
"}", |
9770 |
"}", |
9771 |
}, |
9771 |
}, |
9772 |
"\"" + OUTPUT_DIR + File.separator + "src/p/X.java\"" |
9772 |
"\"" + OUTPUT_DIR + File.separator + "src/p/X.java\"" |
9773 |
+ " -cp \"" + LIB_DIR + File.separator + "lib4.jar\"" |
9773 |
+ " -cp \"" + LIB_DIR + File.separator + "lib4.jar\"" |
9774 |
+ " -sourcepath \"" + OUTPUT_DIR + File.separator + "src\"" |
9774 |
+ " -sourcepath \"" + OUTPUT_DIR + File.separator + "src\"" |
9775 |
+ " -1.5 -g -preserveAllLocals" |
9775 |
+ " -1.5 -g -preserveAllLocals" |
9776 |
+ " -proceedOnError -referenceInfo" |
9776 |
+ " -proceedOnError -referenceInfo" |
9777 |
+ " -d \"" + OUTPUT_DIR + File.separator + "bin\" ", |
9777 |
+ " -d \"" + OUTPUT_DIR + File.separator + "bin\" ", |
9778 |
"", |
9778 |
"", |
9779 |
"----------\n" + |
9779 |
"----------\n" + |
9780 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/src/p/X.java (at line 5)\n" + |
9780 |
"1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/src/p/X.java (at line 5)\n" + |
9781 |
" int j = R.R3;\n" + |
9781 |
" int j = R.R3;\n" + |
9782 |
" ^^^^\n" + |
9782 |
" ^^\n" + |
9783 |
"R.R3 cannot be resolved to a variable\n" + |
9783 |
"R3 cannot be resolved or is not a field\n" + |
9784 |
"----------\n" + |
9784 |
"----------\n" + |
9785 |
"1 problem (1 error)", |
9785 |
"1 problem (1 error)", |
9786 |
true); |
9786 |
true); |
9787 |
} |
9787 |
} |
9788 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=97332 - jars pointed by jars |
9788 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=97332 - jars pointed by jars |
9789 |
// managing subdirectories and .. properly |
9789 |
// managing subdirectories and .. properly |