[jbosstools-issues] [JBoss JIRA] (JBIDE-13252) NullPointerException in AnnotationDeclaration.validateNamedValue

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Dec 6 13:44:17 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-13252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739984#comment-12739984 ] 

Viacheslav Kabanovich edited comment on JBIDE-13252 at 12/6/12 1:43 PM:
------------------------------------------------------------------------

Workaround: declare constant
{code}
public interface MyConstants {
  public static final String APPLICATION_XML_UTF_8 = MediaType.APPLICATION_XML+";charset=UTF-8"
}
{code}
and reference it
{code}
@Produces({MyConstants.APPLICATION_XML_UTF_8})
{code}
                
      was (Author: scabanovich):
    Workaround: declare constant
{code}
public interface MyConstants {
  public static final String APPLICATION_XML_UTF_8 = MediaType.APPLICATION_XML+";charset=UTF-8"
}
{code}
and reference it
{code}
@Produces({MyConstants.APPLICATION_XML_UTF_8}
{code}
                  
> NullPointerException in AnnotationDeclaration.validateNamedValue
> ----------------------------------------------------------------
>
>                 Key: JBIDE-13252
>                 URL: https://issues.jboss.org/browse/JBIDE-13252
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI, common/jst/core
>    Affects Versions: 4.0.0.Beta2
>            Reporter: Viacheslav Kabanovich
>            Assignee: Max Rydahl Andersen
>            Priority: Blocker
>              Labels: respin-e
>             Fix For: 4.0.0.CR1, 4.1.0.Alpha1
>
>
> https://community.jboss.org/message/780126
> Comment to method IMemberValuePair.getValue() says that it may return null.
> There is no check for null in AnnotationDeclaration.validateNamedValue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list