Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not realize the usage of Annotations #7

Open
mdaehnert opened this issue Mar 1, 2016 · 0 comments
Open

Does not realize the usage of Annotations #7

mdaehnert opened this issue Mar 1, 2016 · 0 comments

Comments

@mdaehnert
Copy link

For example if I have the following class:

package foo.bar.baz;

import javax.enterprise.context.ApplicationScoped;

@ApplicationScoped
public class Foo {}

with this macker-rules.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE macker PUBLIC "-//innig//DTD Macker 0.4//EN" "http://innig.net/macker/dtd/macker-0.4.dtd">
<macker>
    <ruleset name="Fooo">
        <access-rule>
            <deny>
                <from class="foo.bar.baz.**" />
                <to class="javax.enterprise.context.**" />
            </deny>
        </access-rule>
    </ruleset>
</macker>

There will be no issue during maven-build.

On the other hand, if I add a call to this Annotation it will be realized and an Exception is thrown.
See working example:

package foo.bar.baz;

import javax.enterprise.context.ApplicationScoped;

public class Foo {
    static {
        Object o = ApplicationScoped.class;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant