Return-Path: Delivered-To: apmail-incubator-beehive-dev-archive@www.apache.org Received: (qmail 64854 invoked from network); 1 Jun 2005 20:55:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Jun 2005 20:55:29 -0000 Received: (qmail 31752 invoked by uid 500); 1 Jun 2005 20:55:29 -0000 Delivered-To: apmail-incubator-beehive-dev-archive@incubator.apache.org Received: (qmail 31710 invoked by uid 500); 1 Jun 2005 20:55:28 -0000 Mailing-List: contact beehive-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list beehive-dev@incubator.apache.org Received: (qmail 31692 invoked by uid 99); 1 Jun 2005 20:55:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Jun 2005 13:55:25 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 286B51A1 for ; Wed, 1 Jun 2005 22:55:04 +0200 (CEST) Message-ID: <755302785.1117659304164.JavaMail.jira@ajax.apache.org> Date: Wed, 1 Jun 2005 22:55:04 +0200 (CEST) From: "Alejandro Ramirez (JIRA)" To: beehive-dev@incubator.apache.org Subject: [jira] Assigned: (BEEHIVE-511) Apt hangs when processing sources with errors In-Reply-To: <176636343.1113010456453.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/BEEHIVE-511?page=all ] Alejandro Ramirez reassigned BEEHIVE-511: ----------------------------------------- Assign To: Julie Zhuo (was: Kyle Marvin) > Apt hangs when processing sources with errors > --------------------------------------------- > > Key: BEEHIVE-511 > URL: http://issues.apache.org/jira/browse/BEEHIVE-511 > Project: Beehive > Type: Bug > Components: Build > Versions: V1 > Reporter: C Brett Bennett > Assignee: Julie Zhuo > Priority: Critical > Fix For: V1 > > Apt'hangs' under the following circumstance. > When processing a @Control field, if it is a control-bean reference, e.g. > @Control SomeBean _bean; > field where SomeBean is generated from a Some.jcx file, but at the time the _bean field is being processed the SomeBean class has not been generated or more specifically in the javac class table, then the loop in the ControlClientAnnotationProcessor: > ------------------------------------------ > ClassType classType = (ClassType)fieldType; > outer: while ( classType != null ) > { > Collection intfs =classType.getSuperinterfaces(); > for ( InterfaceType intfType : intfs ) > { > if ( intfType.getDeclaration().getQualifiedName().equals( "org.apache.beehive.controls.api.bean.ControlBean" ) ) > { > foundControlBean = true; > break outer; > } > } > classType = classType.getSuperclass(); > } > -------------------------------------------- > Will never end because the original fieldType (SomeBean) is an error-type that returns an error-type when getSuperClass() is called. > The following suffices to break the loop: > -------------------------------------------- > ClassType classType = (ClassType)fieldType; > outer: while ( classType != null ) > { > Collection intfs = classType.getSuperinterfaces(); > for ( InterfaceType intfType : intfs ) > { > if ( intfType.getDeclaration().getQualifiedName().equals( "org.apache.beehive.controls.api.bean.ControlBean" ) ) > { > foundControlBean = true; > break outer; > } > } > ClassType superType = classType.getSuperclass(); > if(superType != null && superType.equals(classType)) > { > break; > } > classType = superType; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira