You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Norman Maurer (JIRA)" <se...@james.apache.org> on 2010/10/04 10:47:34 UTC

[jira] Resolved: (IMAP-221) Methods which return uid values should use int as return type

     [ https://issues.apache.org/jira/browse/IMAP-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved IMAP-221.
--------------------------------

      Assignee: Norman Maurer
    Resolution: Invalid

I missed the important word "unsigned". In java all types are signed so we need to use a long. So everything is fine .. stupid me.

Here is the important phrase which is used in the rfc:

nz-number       = digit-nz *DIGIT
                    ; Non-zero unsigned 32-bit integer
                    ; (0 < n < 4,294,967,296)


> Methods which return uid values should use int as return type
> -------------------------------------------------------------
>
>                 Key: IMAP-221
>                 URL: https://issues.apache.org/jira/browse/IMAP-221
>             Project: JAMES Imap
>          Issue Type: Improvement
>          Components: JCR Mailbox, JPA Mailbox, Mailbox, Maildir Mailbox, Store, Torque (Legacy)
>    Affects Versions: 0.1
>            Reporter: Norman Maurer
>            Assignee: Norman Maurer
>             Fix For: 0.2
>
>
> Currently we use long/Long as return type when a message uid is retrieved. Thats wrong as the RFC only allow 32-Bit numbers. We should change the methods to make this clear.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org