You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2008/11/10 09:28:46 UTC
[jira] Created: (CONFIGURATION-349) XMLConfigurationProvider cannot
create a class that extends XMLConfiguration
XMLConfigurationProvider cannot create a class that extends XMLConfiguration
----------------------------------------------------------------------------
Key: CONFIGURATION-349
URL: https://issues.apache.org/jira/browse/CONFIGURATION-349
Project: Commons Configuration
Issue Type: Bug
Affects Versions: 1.5
Reporter: Ralph Goers
XMLConfigurationProvider in DefaultConfigurationBuilder has default scope. When configuring a new ConfigurationProvider to use a class that extends XMLConfiguration an Exception is raised because the setConfigurationClass method cannot be called from the bean utility classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CONFIGURATION-349) XMLConfigurationProvider cannot
create a class that extends XMLConfiguration
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers updated CONFIGURATION-349:
--------------------------------------
Attachment: extended.txt
The attached patch provides a unit test for the problem as well as the fix.
> XMLConfigurationProvider cannot create a class that extends XMLConfiguration
> ----------------------------------------------------------------------------
>
> Key: CONFIGURATION-349
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-349
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.5
> Reporter: Ralph Goers
> Attachments: extended.txt
>
>
> XMLConfigurationProvider in DefaultConfigurationBuilder has default scope. When configuring a new ConfigurationProvider to use a class that extends XMLConfiguration an Exception is raised because the setConfigurationClass method cannot be called from the bean utility classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CONFIGURATION-349) XMLConfigurationProvider
cannot create a class that extends XMLConfiguration
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oliver Heger resolved CONFIGURATION-349.
----------------------------------------
Resolution: Fixed
Fix Version/s: 1.6
Patch applied in revision 713166. Many thanks.
Note: I was unable to port this patch to the configuration2 branch because the new type converters cannot deal with conversions to Class objects. We will have to port this later if necessary.
> XMLConfigurationProvider cannot create a class that extends XMLConfiguration
> ----------------------------------------------------------------------------
>
> Key: CONFIGURATION-349
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-349
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.5
> Reporter: Ralph Goers
> Assignee: Oliver Heger
> Fix For: 1.6
>
> Attachments: extended.txt
>
>
> XMLConfigurationProvider in DefaultConfigurationBuilder has default scope. When configuring a new ConfigurationProvider to use a class that extends XMLConfiguration an Exception is raised because the setConfigurationClass method cannot be called from the bean utility classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CONFIGURATION-349) XMLConfigurationProvider
cannot create a class that extends XMLConfiguration
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646688#action_12646688 ]
Ralph Goers commented on CONFIGURATION-349:
-------------------------------------------
Thanks. I will take a look at what to do on the configuration2 branch.
> XMLConfigurationProvider cannot create a class that extends XMLConfiguration
> ----------------------------------------------------------------------------
>
> Key: CONFIGURATION-349
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-349
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.5
> Reporter: Ralph Goers
> Assignee: Oliver Heger
> Fix For: 1.6
>
> Attachments: extended.txt
>
>
> XMLConfigurationProvider in DefaultConfigurationBuilder has default scope. When configuring a new ConfigurationProvider to use a class that extends XMLConfiguration an Exception is raised because the setConfigurationClass method cannot be called from the bean utility classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CONFIGURATION-349) XMLConfigurationProvider
cannot create a class that extends XMLConfiguration
Posted by "Oliver Heger (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CONFIGURATION-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12647062#action_12647062 ]
Oliver Heger commented on CONFIGURATION-349:
--------------------------------------------
In this branch the dependency to commons-beanutils was dropped and replaced by an own converter framework (in the {{converter}} package). Obviously these converters are not yet as powerful as the ones of beanutils were. In this special case a converter for Class objects is missing.
But maybe we should create a new ticket for this issue.
> XMLConfigurationProvider cannot create a class that extends XMLConfiguration
> ----------------------------------------------------------------------------
>
> Key: CONFIGURATION-349
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-349
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 1.5
> Reporter: Ralph Goers
> Assignee: Oliver Heger
> Fix For: 1.6
>
> Attachments: extended.txt
>
>
> XMLConfigurationProvider in DefaultConfigurationBuilder has default scope. When configuring a new ConfigurationProvider to use a class that extends XMLConfiguration an Exception is raised because the setConfigurationClass method cannot be called from the bean utility classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.