You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Alejandro Abdelnur (JIRA)" <ji...@apache.org> on 2012/05/18 19:29:07 UTC

[jira] [Commented] (OOZIE-846) OozieClient iterates over Properties using Hashtable method

    [ https://issues.apache.org/jira/browse/OOZIE-846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278989#comment-13278989 ] 

Alejandro Abdelnur commented on OOZIE-846:
------------------------------------------

@Lars, good find, I guess this hits people using the Java API. Would you mind uploading a patch?
                
> OozieClient iterates over Properties using Hashtable method
> -----------------------------------------------------------
>
>                 Key: OOZIE-846
>                 URL: https://issues.apache.org/jira/browse/OOZIE-846
>             Project: Oozie
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 3.2.0
>            Reporter: Lars Francke
>            Priority: Minor
>
> OozieClient uses this code to enumerate over a passed in Properties object to convert it to XML:
> {code}
> for (Enumeration e = props.keys(); e.hasMoreElements();) {
> {code}
> {{keys()}} is a method from {{Hashtable}} and misses the _defaults_ that can be used with {{Properties}}. {{Properties.propertyNames()}} should be used instead.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira