Return-Path: X-Original-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Delivered-To: apmail-geronimo-xbean-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EC3B111DF for ; Mon, 19 May 2014 18:08:40 +0000 (UTC) Received: (qmail 54512 invoked by uid 500); 19 May 2014 18:08:40 -0000 Delivered-To: apmail-geronimo-xbean-dev-archive@geronimo.apache.org Received: (qmail 54471 invoked by uid 500); 19 May 2014 18:08:40 -0000 Mailing-List: contact xbean-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: xbean-dev@geronimo.apache.org Delivered-To: mailing list xbean-dev@geronimo.apache.org Received: (qmail 54420 invoked by uid 99); 19 May 2014 18:08:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 18:08:40 +0000 Date: Mon, 19 May 2014 18:08:40 +0000 (UTC) From: "Matt Benson (JIRA)" To: xbean-dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (XBEAN-263) creating ClassInfo for an annotated Class object throws NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/XBEAN-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002085#comment-14002085 ] Matt Benson commented on XBEAN-263: ----------------------------------- https://github.com/apache/geronimo-xbean/pull/6 > creating ClassInfo for an annotated Class object throws NPE > ----------------------------------------------------------- > > Key: XBEAN-263 > URL: https://issues.apache.org/jira/browse/XBEAN-263 > Project: XBean > Issue Type: Bug > Components: finder > Affects Versions: 3.17 > Reporter: Matt Benson > > The class-based, as opposed to signature-based. portion of {{AnnotationFinder}} is rather difficult to test, but I have been able to create a failing test case. The issue is that {{Annotatable(AnnotatedElement)}} calls the {{AnnotationInfo}} constructor using the classname of the {{annotationType}} which, in turn, calls ASM's {{Type.getType(String)}}; however, this method wants a type descriptor (the method's Javadoc actually says "a field or method type descriptor"). Calling {{AnnotationInfo(Class)}} instead solves the problem. -- This message was sent by Atlassian JIRA (v6.2#6252)