Lines 949-955
Link Here
|
949 |
" Each directory or file can specify access rules for\n" + |
949 |
" Each directory or file can specify access rules for\n" + |
950 |
" types between ''['' and '']'' (e.g. [-X] to forbid\n" + |
950 |
" types between ''['' and '']'' (e.g. [-X] to forbid\n" + |
951 |
" access to type X, [~X] to discourage access to type X,\n" + |
951 |
" access to type X, [~X] to discourage access to type X,\n" + |
952 |
" [+p/X:-p/*] to forbid access to all types in package p\n" + |
952 |
" [+p/X" + File.pathSeparator + "-p/*] to forbid access to all types in package p\n" + |
953 |
" but allow access to p/X)\n" + |
953 |
" but allow access to p/X)\n" + |
954 |
" -bootclasspath <directories and zip/jar files separated by " + File.pathSeparator + ">\n" + |
954 |
" -bootclasspath <directories and zip/jar files separated by " + File.pathSeparator + ">\n" + |
955 |
" specify location for system classes. Each directory or\n" + |
955 |
" specify location for system classes. Each directory or\n" + |
Lines 3200-3209
Link Here
|
3200 |
true); |
3200 |
true); |
3201 |
} |
3201 |
} |
3202 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=147461 |
3202 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=147461 |
3203 |
public void _test057_access_restrictions_separator(){ |
3203 |
// the compilation is successful because we do not check the classpath entries |
|
|
3204 |
// given in the rules; accordingly OK<sep>-KO is seen as a directory that is |
3205 |
// added to positive rules, and the compilation completes normally |
3206 |
public void test057_access_restrictions_separator(){ |
3204 |
String oppositeSeparator = File.pathSeparatorChar == ':' ? |
3207 |
String oppositeSeparator = File.pathSeparatorChar == ':' ? |
3205 |
";" : ":"; |
3208 |
";" : ":"; |
3206 |
this.runNegativeTest( |
3209 |
this.runConformTest( |
3207 |
new String[] { |
3210 |
new String[] { |
3208 |
"X.java", |
3211 |
"X.java", |
3209 |
"/** */\n" + |
3212 |
"/** */\n" + |
Lines 3230-3239
Link Here
|
3230 |
}, |
3233 |
}, |
3231 |
"\"" + OUTPUT_DIR + File.separator + "X.java\"" |
3234 |
"\"" + OUTPUT_DIR + File.separator + "X.java\"" |
3232 |
+ " -1.5 -g -preserveAllLocals" |
3235 |
+ " -1.5 -g -preserveAllLocals" |
3233 |
+ " -cp \"" + OUTPUT_DIR + "[+OK2" + oppositeSeparator + "-KO]" |
3236 |
+ " -cp \"" + OUTPUT_DIR + "[+OK2" + oppositeSeparator + "-KO]\"" |
3234 |
+ " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", |
3237 |
+ " -proceedOnError -referenceInfo -d \"" + OUTPUT_DIR + "\"", |
3235 |
"", |
3238 |
"", |
3236 |
"ERR: invalid spec", |
3239 |
"", |
3237 |
true); |
3240 |
true); |
3238 |
} |
3241 |
} |
3239 |
|
3242 |
|