Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 92260 invoked from network); 16 Jul 2005 09:02:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Jul 2005 09:02:04 -0000 Received: (qmail 3735 invoked by uid 500); 16 Jul 2005 09:02:03 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 3640 invoked by uid 500); 16 Jul 2005 09:02:03 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 52094 invoked by uid 99); 15 Jul 2005 17:33:30 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Message-ID: <1917783712.1121448795835.JavaMail.jira@ajax.apache.org> Date: Fri, 15 Jul 2005 19:33:15 +0200 (CEST) From: =?UTF-8?Q?Krzysztof_Bia=C5=82ek_=28JIRA=29?= To: ojb-dev@db.apache.org Subject: [jira] Updated: (OJB-61) xdoclet ojb.reference property class-ref doesn't work with generics In-Reply-To: <821462428.1121448795468.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/OJB-61?page=3Dall ] Krzysztof Bia=C5=82ek updated OJB-61: -------------------------------- Attachment: ReferenceDescriptorConstraints.java My modification is very simple, it forces xdoclet to use class-ref property= if class-ref is set. > xdoclet ojb.reference property class-ref doesn't work with generics > ------------------------------------------------------------------- > > Key: OJB-61 > URL: http://issues.apache.org/jira/browse/OJB-61 > Project: OJB > Type: Bug > Versions: 1.0.3 > Environment: java version: 1.5.0 (build 1.5.0_02-b09) > Reporter: Krzysztof Bia=C5=82ek > Priority: Minor > Attachments: ReferenceDescriptorConstraints.java > > There is bug inside xdoclet-ojb-module, which cause it to crash when pars= ing classes using generics feature. > Here is example code: > package some.package; > /** > * @ojb.class > */ > class Foo { > } > /** > * @ojb.class > */ > class Bar { > /** > * @ojb.reference class-ref=3D"some.package.Foo" > * foreignkey=3D"someReferenceId" > * database-foreignkey=3D"false" > * auto-retrieve=3D"true" > * auto-update=3D"none" > * auto-delete=3D"none" > */ > private T someReference; > /** > * @ojb.field > */ > private Integer someReferenceId; > } > I skiped some elements, to make this example shorten. > xdoclet craches when tries to find T class, which doesn't exist of course= .=20 --=20 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 --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org