You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Stéphane Decleire (JIRA)" <hi...@jakarta.apache.org> on 2007/07/05 17:39:04 UTC
[jira] Created: (HIVEMIND-209) HiveMind can't inject a numeric
value in an Integer property of a bean.
HiveMind can't inject a numeric value in an Integer property of a bean.
-----------------------------------------------------------------------
Key: HIVEMIND-209
URL: https://issues.apache.org/jira/browse/HIVEMIND-209
Project: HiveMind
Issue Type: Bug
Components: framework
Affects Versions: 1.1.1
Reporter: Stéphane Decleire
Priority: Minor
The declaration bellow throw the exception "No property editor for java.lang.Integer"
<service-point id="Alert" interface="IAlert">
<invoke-factory>
<construct class="impl.Alert">
<set property="radius" value="10"/>
</construct>
</invoke-factory>
</service-point>
James had a look at this and told me it happens "because it uses the java.beans.PropertyEditorManager
class to find an editor for that type (and it's not registered by default)".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVEMIND-209) HiveMind can't inject a numeric
value in an Integer property of a bean.
Posted by "Jochen Zimmermann (JIRA)" <hi...@jakarta.apache.org>.
[ https://issues.apache.org/jira/browse/HIVEMIND-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jochen Zimmermann updated HIVEMIND-209:
---------------------------------------
Attachment: hivemind-209.patch
First created a test case in TestSmartTranslator.java
Funny enough the test with "Double.class" does work, the new test with "Integer.class" does not.
In SmartTranslator.java I found a comment in the code that it is copied from PropertyAdaptor.java. So checked the code there and found that it was not exactly the same.
After completing the code in SmartTranslator.java the tests all passed.
Now it works, but the code is doubled.
> HiveMind can't inject a numeric value in an Integer property of a bean.
> -----------------------------------------------------------------------
>
> Key: HIVEMIND-209
> URL: https://issues.apache.org/jira/browse/HIVEMIND-209
> Project: HiveMind
> Issue Type: Bug
> Components: framework
> Affects Versions: 1.1.1
> Reporter: Stéphane Decleire
> Priority: Minor
> Attachments: hivemind-209.patch
>
>
> The declaration bellow throw the exception "No property editor for java.lang.Integer"
> <service-point id="Alert" interface="IAlert">
> <invoke-factory>
> <construct class="impl.Alert">
> <set property="radius" value="10"/>
> </construct>
> </invoke-factory>
> </service-point>
> James had a look at this and told me it happens "because it uses the java.beans.PropertyEditorManager
> class to find an editor for that type (and it's not registered by default)".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.