rombert commented on PR #8:
URL:
https://github.com/apache/sling-org-apache-sling-models-api/pull/8#issuecomment-1297343495
With this annotation processor the following code
```
@SlingObject
private static ResourceResolver resourceResolver;
```
causes a compilation failure
```
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile)
on project core: Compilation failure
[ERROR]
/home/robert/sources/apache/sling/tmp/project001/core/src/main/java/com/example/models/SampleRequestModel.java:[35,37]
Annotation org.apache.sling.models.annotations.injectorspecific.SlingObject
may not be used on static fields
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]