Skip to content

JAVA-1136: Enable JDK signature check in module driver-extras.#636

Merged
olim7t merged 2 commits into
3.0.xfrom
java1136
Apr 20, 2016
Merged

JAVA-1136: Enable JDK signature check in module driver-extras.#636
olim7t merged 2 commits into
3.0.xfrom
java1136

Conversation

@adutra

@adutra adutra commented Mar 24, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@tolbertam

Copy link
Copy Markdown
Contributor

Rebased on 3.0.x (only conflict was README.md), to get other jdk6 fix changes to see if it fixes remaining problems.

Comment thread driver-extras/pom.xml
<version>1.0</version>
</signature>
</configuration>
<executions>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a little bit to wrap my head around this, but this is very cool. The annotation solution is pretty elegant. It would be even nicer if animal-sniffer supported package level annotations (i.e. if a package is annotated, it skips all of its classes), but it doesn't look like that currently works (but maybe a nice change request for animal sniffer).

@tolbertam

Copy link
Copy Markdown
Contributor

This looks good to me and is running well in CI 👍

@tolbertam

Copy link
Copy Markdown
Contributor

I should note that the OSGi tests aren't running on this branch, but i think that is a carry over from 2.1 as it doesn't appear to be running it either :(. It looks like #635 fixes this, so that will take care of that.

@tolbertam

Copy link
Copy Markdown
Contributor

I went ahead and rebased this since the only conflict was README.md.

Alexandre Dutra added 2 commits April 20, 2016 18:01
The animal-sniffer plugin is now configured to run twice: once against JDK6 (excluding classes in jdk8 package),
then against JDK8 (nothing excluded).
IntelliJ can report inadequate usage of API call, which is very useful in normal situations,
but enabling this warning would mark the whole jdk8 package with errors.

This commit disables the errors for classes in this package, but to achieve this,
no imports could be used, and offending classes must appear with fully-qualified class names everywhere.
@olim7t olim7t merged commit a24f363 into 3.0.x Apr 20, 2016
@olim7t olim7t deleted the java1136 branch April 20, 2016 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants