db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Krzysztof Białek (JIRA) <j...@apache.org>
Subject [jira] Created: (OJB-61) xdoclet ojb.reference property class-ref doesn't work with generics
Date Fri, 15 Jul 2005 17:33:15 GMT
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łek
    Priority: Minor
 Attachments: ReferenceDescriptorConstraints.java

There is bug inside xdoclet-ojb-module, which cause it to crash when parsing classes using
generics feature.

Here is example code:

package some.package;

* @ojb.class
class Foo {

* @ojb.class
class Bar<T extends Foo> {
   * @ojb.reference class-ref="some.package.Foo"
    *                foreignkey="someReferenceId"
    *                database-foreignkey="false"
    *                auto-retrieve="true"
    *                auto-update="none"
    *                auto-delete="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. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org

View raw message