dev@glassfish.java.net

Re: NotNull vs Element(required=true)

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Mon, 19 Jul 2010 11:02:54 -0700

There is a bug in post-processing in config-api. You have to "mvn
clean" before you build to see your changes.


On 7/19/2010 9:57 AM, Bobby Bissett wrote:
>
> On Jul 19, 2010, at 12:42 PM, Jerome Dochez wrote:
>
>>> The child element getFailureDetection() has both @NotNull and
>>> @Element(required=true).
>>>
>>> We are definitely being impacted by defaulting since manually adding
>>> an attribute in domain.xml addresses the issue.
>> ok let me try to understand.
>>
>> you add @NotNull to getGroupManagementService() and you get a
>> instance back.
>> that GroupManagementService has a child element FailureDetection
>> which is also annotated with @NotNull but it's null.
>>
>> so the parent is not null, but the child is ?
>
> No, everything is null. getGroupManagementService is returning null.
>
> There may be more to this: after we add the @NotNull to this element
> and rebuild config-api, do we need to rebuild anything else to make
> sure this annotation is processed?
>
> Thanks,
> Bobby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188