View | Details | Raw Unified | Return to bug 122885 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/internal/compiler/tool/EclipseFileManager.java (-14 / +2 lines)
Lines 42-47 Link Here
42
import org.eclipse.jdt.internal.compiler.batch.FileSystem;
42
import org.eclipse.jdt.internal.compiler.batch.FileSystem;
43
import org.eclipse.jdt.internal.compiler.batch.Main;
43
import org.eclipse.jdt.internal.compiler.batch.Main;
44
import org.eclipse.jdt.internal.compiler.batch.Main.ResourceBundleFactory;
44
import org.eclipse.jdt.internal.compiler.batch.Main.ResourceBundleFactory;
45
import org.eclipse.jdt.internal.compiler.env.AccessRestriction;
45
import org.eclipse.jdt.internal.compiler.env.AccessRule;
46
import org.eclipse.jdt.internal.compiler.env.AccessRule;
46
import org.eclipse.jdt.internal.compiler.env.AccessRuleSet;
47
import org.eclipse.jdt.internal.compiler.env.AccessRuleSet;
47
48
Lines 1085-1104 Link Here
1085
				}
1086
				}
1086
			}
1087
			}
1087
			if (rulesOK) {
1088
			if (rulesOK) {
1088
				String templates[] = new String[AccessRuleSet.MESSAGE_TEMPLATES_LENGTH];
1089
	    		accessRuleSet = new AccessRuleSet(accessRules, AccessRestriction.COMMAND_LINE, currentClasspathName);
1089
				templates[0] = this.bind(
1090
						"template.restrictedAccess.type", //$NON-NLS-1$
1091
						new String[] {"{0}", currentClasspathName}); //$NON-NLS-1$
1092
				templates[1] = this.bind(
1093
						"template.restrictedAccess.constructor", //$NON-NLS-1$
1094
						new String[] {"{0}", currentClasspathName}); //$NON-NLS-1$
1095
				templates[2] = this.bind(
1096
						"template.restrictedAccess.method", //$NON-NLS-1$
1097
						new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$
1098
				templates[3] = this.bind(
1099
						"template.restrictedAccess.field", //$NON-NLS-1$
1100
						new String[] {"{0}", "{1}", currentClasspathName}); //$NON-NLS-1$ //$NON-NLS-2$
1101
				accessRuleSet = new AccessRuleSet(accessRules, templates);
1102
			} else {
1090
			} else {
1103
				return;
1091
				return;
1104
			}
1092
			}

Return to bug 122885