[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-build-dev] pde build & jdt access rules
|
Do access rules have any effect on the compiler except producing warnings ? Or will my class files always be the same whether I specify them or not ?
Tom
On 11/6/06,
Andrew Niefer <aniefer@xxxxxxxxxx> wrote:
Tom,
Rules starting with "?" are
interpreted as Forbidden, Keep Looking. This means that if the compiler
finds a match with this rule it will continue looking on the classpath
for another jar that contains the type (instead of using that type with
a forbidden warning/error). It looks like the docs don't cover this,
but if you look in org.eclipse.jdt.core/org.eclipse.jdt.internal.compiler.batch.Main.addNewEntry()
you will see it handled there.
As far as compile errors during export/headless
build, you won't get them. You should however get warnings if you
look in the compile logs. These kind of access violations are not
technically java errors so the batch compiler will not flag them as errors.
In Eclipse, the UI will interpret the warnings as errors according
to your preferences.
-Andrew
Hi all,
I've been using the ClasspathComputer that was posted on this list a
few months ago to help building with maven.I thought this was working
correctly, but it seems that the compiler is not really taking the
access rules into account.
To test this, I removed some of the Imported-Packages from one of my
plugins. In the UI, I got a lot of compile errors. Then I tried an
export via the export wizard, and the plugin compiled without any
trouble. Is this the correct behaviour ?
Something that might be related:. ClasspathComputer3_0 has a constant
EXCLUDE_ALL_RULE = "?**/*". If I look at the batch compiler help,
only
+, - and ~are supported...
Tom
ps: I'm using 3.3M3
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev