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

Brian Foster commented on OODT-149:
-----------------------------------

null is the default initialization value for a String in Java 
(http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html) . 
. . this makes it is clear at any point in the code that the JobId has not been 
set yet . . . also the default value for JobId in Job class is null . . . if 
the Resource Manager code where to ever be wrapped and not use the XML-RPC 
service, then code would throw null pointer exceptions since all the code would 
be assuming JobId to be "" and never be null . . . the only code enforcing 
JobId equals "" when not set is in the XML-RPC serialization utils.

> XmlRpcStructFactory when creating XmlRpc Job converts a Job's JobId to empty 
> String but doesn't convert it back to null
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: OODT-149
>                 URL: https://issues.apache.org/jira/browse/OODT-149
>             Project: OODT
>          Issue Type: Bug
>          Components: resource manager
>    Affects Versions: 0.2
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Brian Foster
>            Priority: Minor
>             Fix For: 0.3
>
>
> either:
> 1) change it such that when XML-RPC Job is converted back to a Job, its JobId 
> is set to null if it is empty string
> 2) if null, set JobId to String "null", then convert back to null if JobId is 
> "null"

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to