[jboss-jira] [JBoss JIRA] Updated: (JBSER-110) Wrong field shown in throw exception string

J.N. Niels (JIRA) jira-events at lists.jboss.org
Wed Nov 12 07:11:36 EST 2008


     [ https://jira.jboss.org/jira/browse/JBSER-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J.N. Niels updated JBSER-110:
-----------------------------

    Description: 
In class StreamingClass.java an exception is thrown at
				if (fieldOnHash==null)
				{
					throw new IOException ("Field hash " + fieldOnHash + " is not available on current classPath for class " + className);
				}

but the fieldOnHash is in this case always null, so it may take a whole day to track down which field actually gives the problem (like it happened to me today!). Please change the throw-line into what is ment originally:
					throw new IOException ("Field hash " + hashField + " is not available on current classPath for class " + className);



  was:
In class StreamingClass.java an exception is thrown at
     throw new IOException ("Field hash " + fieldOnHash + " is not available on current classPath for class " + className);
but the fieldOnHash is in this case always null, so it may take a whole day to track down which field actually gives the problem (like it happened to me today!). Please change this into what is ment originally:
    throw new IOException ("Field hash " + hashField + " is not available on current classPath for class " + className);




> Wrong field shown in throw exception string
> -------------------------------------------
>
>                 Key: JBSER-110
>                 URL: https://jira.jboss.org/jira/browse/JBSER-110
>             Project: JBoss Serialization
>          Issue Type: Bug
>         Environment: JBoss 4.2.2
>            Reporter: J.N. Niels
>            Assignee: Clebert Suconic
>            Priority: Minor
>   Original Estimate: 2 minutes
>  Remaining Estimate: 2 minutes
>
> In class StreamingClass.java an exception is thrown at
> 				if (fieldOnHash==null)
> 				{
> 					throw new IOException ("Field hash " + fieldOnHash + " is not available on current classPath for class " + className);
> 				}
> but the fieldOnHash is in this case always null, so it may take a whole day to track down which field actually gives the problem (like it happened to me today!). Please change the throw-line into what is ment originally:
> 					throw new IOException ("Field hash " + hashField + " is not available on current classPath for class " + className);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list