Community
Participate
Working Groups
3.1m6 The batch compiler should allow to be specified access rules on a per classpath entry basis
Created attachment 20782 [details] Batch compiler test class extension to take command lines into account The rationale is to enable a command line invocation that does not talk to the underlying APIs. The suggested patch specializes runConformTest and runNegativeTest, then leverages these from a couple of concrete tests.
Created attachment 20929 [details] Add function as '[+-~pattern]' extension to classpath values Adds the function as follows: - each classpath (or bootclasspath) entry can be followed by a '[' ']' enclosed list of access rules; - each access rule is composed of a one-character permission specification and a rule pattern; the permission specification is '+' for accessible, '~' for discourage, and '-' for forbidden; patterns are the same as in the UI; - rules must be separated by the file separator (aka ';' on Windows). Further work for consideration: - consolidate classpaths lists; - factorize common behavior between ClasspathDirectory and ClasspathJar; - revisit command line analyzer.
Created attachment 20930 [details] Batch compiler test class improvements + access rules tests Improves the test class in the following respects: - more complete output in case of mismatch; - normalize the OUTPUT_DIR value in comparison. Adds test cases for 20929.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=95349, that should impact test cases.
Created attachment 21413 [details] function as '[+-~pattern]' extension to classpath values Refactoring as suggested in comments to attachment 20929 [details].
Created attachment 21414 [details] Batch compiler tests improvements + access rules tests Improves 20930 by adding some tests and being more resilient to changes in test machine configuration. Also integrates log file tests (used by https://bugs.eclipse.org/bugs/show_bug.cgi?id=95349).
(In reply to comment #6) > Also integrates log file tests (used by > https://bugs.eclipse.org/bugs/show_bug.cgi?id=95349). Pls read instead https://bugs.eclipse.org/bugs/show_bug.cgi?id=93904 (apologies).
Maxime, Could you please provide a patch based on HEAD? I cannot apply your patch (provided in comment 5) directly on top of HEAD.
Created attachment 21716 [details] Tests -- HEAD catchup (tolerate timestamps in logs, etc.)
Fixed and release in HEAD. Regression tests added in org.eclipse.jdt.core.tests.compiler.regression.BatchCompilerTest. Changes in: org.eclipse.jdt.internal.compiler.batch.messages.properties org.eclipse.jdt.internal.compiler.batch.ClasspathDirectory org.eclipse.jdt.internal.compiler.batch.ClasspathJar org.eclipse.jdt.internal.compiler.batch.ClasspathLocation org.eclipse.jdt.internal.compiler.batch.FileSystem org.eclipse.jdt.internal.compiler.batch.Main org.eclipse.jdt.internal.compiler.env.AccessRuleSet
Verified for 3.1 RC1 with build I20050527-0010.