[jira] [Updated] (ARIES-1805) Blueprint core does not honor Java beans specification
[ https://issues.apache.org/jira/browse/ARIES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1805: --- Fix Version/s: (was: blueprint-core-1.9.1) blueprint-core-1.10.0 > Blueprint core does not honor Java beans specification > -- > > Key: ARIES-1805 > URL: https://issues.apache.org/jira/browse/ARIES-1805 > Project: Aries > Issue Type: Bug > Components: Blueprint >Affects Versions: blueprint-core-1.8.0 >Reporter: Andrea Tarocchi >Assignee: Guillaume Nodet >Priority: Major > Fix For: blueprint-core-1.10.0 > > > Aries blueprint core, to consider a property legit, checks that is and get > access methods are not present at the same time: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L222-L255 > specifically: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L249 > looking at java bean specification: > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf?AuthParam=1527758194_593d6e2c9336cf75e216a390c7b9 > it seems that both access methods ({{is}} and {{get}}) are allowed to be > present at the same time, in that case, the {{is}} has to be used: > bq. *8.3.2* Boolean properties In addition, for boolean properties, we allow > a getter method to match the pattern: public boolean is(); This > “is” method may be provided instead of a “get” > method, or it may be provided in addition to a “get” method. In > either case, if the “is” method is present for a boolean > property then we will use the “is” method to read the property > value. > Should the Aries implementation be modified accordingly? > I've provided a test case in this PR https://github.com/apache/aries/pull/85 > If possible, would be nice to have this available to version {{1.8.0}} as > well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (ARIES-1805) Blueprint core does not honor Java beans specification
[ https://issues.apache.org/jira/browse/ARIES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1805: --- Fix Version/s: (was: blueprint-core-1.8.4) > Blueprint core does not honor Java beans specification > -- > > Key: ARIES-1805 > URL: https://issues.apache.org/jira/browse/ARIES-1805 > Project: Aries > Issue Type: Bug > Components: Blueprint >Affects Versions: blueprint-core-1.8.0 >Reporter: Andrea Tarocchi >Assignee: Guillaume Nodet >Priority: Major > Fix For: blueprint-core-1.9.1 > > > Aries blueprint core, to consider a property legit, checks that is and get > access methods are not present at the same time: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L222-L255 > specifically: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L249 > looking at java bean specification: > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf?AuthParam=1527758194_593d6e2c9336cf75e216a390c7b9 > it seems that both access methods ({{is}} and {{get}}) are allowed to be > present at the same time, in that case, the {{is}} has to be used: > bq. *8.3.2* Boolean properties In addition, for boolean properties, we allow > a getter method to match the pattern: public boolean is(); This > “is” method may be provided instead of a “get” > method, or it may be provided in addition to a “get” method. In > either case, if the “is” method is present for a boolean > property then we will use the “is” method to read the property > value. > Should the Aries implementation be modified accordingly? > I've provided a test case in this PR https://github.com/apache/aries/pull/85 > If possible, would be nice to have this available to version {{1.8.0}} as > well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (ARIES-1805) Blueprint core does not honor Java beans specification
[ https://issues.apache.org/jira/browse/ARIES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1805: --- Fix Version/s: blueprint-core-1.8.4 > Blueprint core does not honor Java beans specification > -- > > Key: ARIES-1805 > URL: https://issues.apache.org/jira/browse/ARIES-1805 > Project: Aries > Issue Type: Bug > Components: Blueprint >Affects Versions: blueprint-core-1.8.0 >Reporter: Andrea Tarocchi >Assignee: Guillaume Nodet >Priority: Major > Fix For: blueprint-core-1.8.4, blueprint-core-1.9.1 > > > Aries blueprint core, to consider a property legit, checks that is and get > access methods are not present at the same time: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L222-L255 > specifically: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L249 > looking at java bean specification: > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf?AuthParam=1527758194_593d6e2c9336cf75e216a390c7b9 > it seems that both access methods ({{is}} and {{get}}) are allowed to be > present at the same time, in that case, the {{is}} has to be used: > bq. *8.3.2* Boolean properties In addition, for boolean properties, we allow > a getter method to match the pattern: public boolean is(); This > “is” method may be provided instead of a “get” > method, or it may be provided in addition to a “get” method. In > either case, if the “is” method is present for a boolean > property then we will use the “is” method to read the property > value. > Should the Aries implementation be modified accordingly? > I've provided a test case in this PR https://github.com/apache/aries/pull/85 > If possible, would be nice to have this available to version {{1.8.0}} as > well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (ARIES-1805) Blueprint core does not honor Java beans specification
[ https://issues.apache.org/jira/browse/ARIES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1805: --- Fix Version/s: blueprint-core-1.9.1 > Blueprint core does not honor Java beans specification > -- > > Key: ARIES-1805 > URL: https://issues.apache.org/jira/browse/ARIES-1805 > Project: Aries > Issue Type: Bug > Components: Blueprint >Affects Versions: blueprint-core-1.8.0 >Reporter: Andrea Tarocchi >Assignee: Guillaume Nodet >Priority: Major > Fix For: blueprint-core-1.9.1 > > > Aries blueprint core, to consider a property legit, checks that is and get > access methods are not present at the same time: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L222-L255 > specifically: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L249 > looking at java bean specification: > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf?AuthParam=1527758194_593d6e2c9336cf75e216a390c7b9 > it seems that both access methods ({{is}} and {{get}}) are allowed to be > present at the same time, in that case, the {{is}} has to be used: > bq. *8.3.2* Boolean properties In addition, for boolean properties, we allow > a getter method to match the pattern: public boolean is(); This > “is” method may be provided instead of a “get” > method, or it may be provided in addition to a “get” method. In > either case, if the “is” method is present for a boolean > property then we will use the “is” method to read the property > value. > Should the Aries implementation be modified accordingly? > I've provided a test case in this PR https://github.com/apache/aries/pull/85 > If possible, would be nice to have this available to version {{1.8.0}} as > well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (ARIES-1805) Blueprint core does not honor Java beans specification
[ https://issues.apache.org/jira/browse/ARIES-1805?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet updated ARIES-1805: --- Summary: Blueprint core does not honor Java beans specification (was: Blueprint core dose not honor Java beans specification) > Blueprint core does not honor Java beans specification > -- > > Key: ARIES-1805 > URL: https://issues.apache.org/jira/browse/ARIES-1805 > Project: Aries > Issue Type: Bug > Components: Blueprint >Affects Versions: blueprint-core-1.8.0 >Reporter: Andrea Tarocchi >Assignee: Guillaume Nodet >Priority: Major > > Aries blueprint core, to consider a property legit, checks that is and get > access methods are not present at the same time: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L222-L255 > specifically: > https://github.com/apache/aries/blob/trunk/blueprint/blueprint-core/src/main/java/org/apache/aries/blueprint/utils/ReflectionUtils.java#L249 > looking at java bean specification: > http://download.oracle.com/otn-pub/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/beans.101.pdf?AuthParam=1527758194_593d6e2c9336cf75e216a390c7b9 > it seems that both access methods ({{is}} and {{get}}) are allowed to be > present at the same time, in that case, the {{is}} has to be used: > bq. *8.3.2* Boolean properties In addition, for boolean properties, we allow > a getter method to match the pattern: public boolean is(); This > “is” method may be provided instead of a “get” > method, or it may be provided in addition to a “get” method. In > either case, if the “is” method is present for a boolean > property then we will use the “is” method to read the property > value. > Should the Aries implementation be modified accordingly? > I've provided a test case in this PR https://github.com/apache/aries/pull/85 > If possible, would be nice to have this available to version {{1.8.0}} as > well. -- This message was sent by Atlassian JIRA (v7.6.3#76005)