Skip to content

Testing behavior of IntrinsicProcessor#8

Open
jtulach wants to merge 2 commits intoObjectLayout:masterfrom
jtulach:AnnotationProcessorTest
Open

Testing behavior of IntrinsicProcessor#8
jtulach wants to merge 2 commits intoObjectLayout:masterfrom
jtulach:AnnotationProcessorTest

Conversation

@jtulach
Copy link

@jtulach jtulach commented Feb 24, 2015

Behavior of annotation processors gets more and more complicated over time. Detailed error detection and reporting needs to be properly tested. IntrinsicProcessor is currently not tested as all. I'd like to change that and offer the testing harness that worked quite well in many situations.

The first commit (6e9bcd7) turns on annotation processing for code src/test/java. This verifies that the annotation processor does not hiccup on valid test code.

The second commit (feb488f) introduces IntrinsicProcessorTest that checks an error is emitted when an intrinsic field is not final or private.

…or of the annotation processor more deeply. To avoid own compilation error, we generate the META-INF/services registration dynamically using ServiceProvider annotation. The 'lookup' library which provides the annotation is used only during compilation (e.g. scope provided) then it is no longer needed.
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

Successfully merging this pull request may close these issues.

1 participant