You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2015/06/27 11:37:06 UTC
[jira] [Closed] (SLING-3911) Sling Models: Unexpected behaviour
from Default
[ https://issues.apache.org/jira/browse/SLING-3911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Seifert closed SLING-3911.
---------------------------------
> Sling Models: Unexpected behaviour from Default
> -----------------------------------------------
>
> Key: SLING-3911
> URL: https://issues.apache.org/jira/browse/SLING-3911
> Project: Sling
> Issue Type: Bug
> Components: Extensions
> Reporter: Jason E Bailey
> Assignee: Justin Edelson
> Priority: Minor
> Labels: models
> Fix For: Sling Models API 1.2.0, Sling Models Impl 1.2.0
>
> Attachments: SLING-3911-1.patch, SLING-3911-2.patch
>
>
> Current application of the @Default annotation has unexpected results
> {code}
> @Default() int[] intExample;
> // sets intExample to a non empty array of [0]
> @Default(longValues={1,1}) int[] intExample2;
> // sets intExample2 to a non empty array of [0]
> {code}
> This experience occurs will all supported array types
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)