[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dirk Rudolph updated SLING-11507: - Fix Version/s: (was: Sling Models Implementation 1.5) > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Bug > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Assignee: Dirk Rudolph >Priority: Critical > Time Spent: 1h 10m > Remaining Estimate: 0h > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem (another option would be to refuse the injection with > a proper error message). -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Angela Schreiber updated SLING-11507: - Issue Type: Bug (was: Task) > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Bug > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Priority: Major > Fix For: Sling Models Implementation 1.5 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem (another option would be to refuse the injection with > a proper error message). -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Angela Schreiber updated SLING-11507: - Priority: Critical (was: Major) > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Bug > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Priority: Critical > Fix For: Sling Models Implementation 1.5 > > Time Spent: 0.5h > Remaining Estimate: 0h > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem (another option would be to refuse the injection with > a proper error message). -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Ziegeler updated SLING-11507: - Fix Version/s: Sling Models Implementation 1.5 > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Task > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Priority: Major > Fix For: Sling Models Implementation 1.5 > > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem (another option would be to refuse the injection with > a proper error message). -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joerg Hoh updated SLING-11507: -- Description: Currently this injection works: {noformat} @SlingObject private static ResourceResolver resourceResolver; {noformat} but it should not. Sling Models are Pojos and injection must never inject into static fields. Instead it should throw an exception and an error message indicating the problem (another option would be to refuse the injection with a proper error message). was: Currently this injection works: {noformat} @SlingObject private static ResourceResolver resourceResolver; {noformat} but it should not. Sling Models are Pojos and injection must never inject into static fields. Instead it should throw an exception and an error message indicating the problem. > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Task > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Priority: Major > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem (another option would be to refuse the injection with > a proper error message). -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (SLING-11507) Field injection should not inject static fields
[ https://issues.apache.org/jira/browse/SLING-11507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joerg Hoh updated SLING-11507: -- Description: Currently this injection works: {noformat} @SlingObject private static ResourceResolver resourceResolver; {noformat} but it should not. Sling Models are Pojos and injection must never inject into static fields. Instead it should throw an exception and an error message indicating the problem. was: Currently this injection works: {noformat} @SlingObject private static ResourceResolver resourceResolver; {noformat} but it should not. Sling Models are Pojos and injection must never inject into static fields. Instead it should throw an exception and and error message indicating the problem. > Field injection should not inject static fields > --- > > Key: SLING-11507 > URL: https://issues.apache.org/jira/browse/SLING-11507 > Project: Sling > Issue Type: Task > Components: Sling Models >Affects Versions: Models Impl 1.4.14 >Reporter: Joerg Hoh >Priority: Major > > Currently this injection works: > {noformat} > @SlingObject > private static ResourceResolver resourceResolver; > {noformat} > but it should not. Sling Models are Pojos and injection must never inject > into static fields. Instead it should throw an exception and an error message > indicating the problem. -- This message was sent by Atlassian Jira (v8.20.10#820010)