jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JCR-1506) [PATCH] NodePropBundle can only calculate int sizes from getSize()
Date Fri, 28 Mar 2008 06:44:24 GMT

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

Jukka Zitting updated JCR-1506:

    Affects Version/s:     (was: core 1.4.1)
        Fix Version/s:     (was: core 1.4.2)

Do we need this? The calculation tries to estimate the in-memory size of a bundle. We should
never have individual bundles in the gigabyte range (!), so I don't see how the calculation
could overflow the int range.

I'd resolve this as Won't Fix.

> [PATCH] NodePropBundle can only calculate int sizes from getSize()
> ------------------------------------------------------------------
>                 Key: JCR-1506
>                 URL: https://issues.apache.org/jira/browse/JCR-1506
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Dave Brosius
>            Priority: Trivial
>         Attachments: use_long_space.patch
> NodePropBundle.getSize() does integer math, then casts it to a long, thus limiting the
range of values to just those that fit in an integer. This patch fixes this.

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

View raw message