@IndexedEmbedded appears to handle only declared type, not subtypes

Description

Given the following:

@Indexed
class A{
@IndexedEmbedded
public B b;

}

class B{
...//some indexed fields
}

public class C{
...//some more indexed fields
}

The index for A will only contain the indexed fields in B, never the fields in C, even if the runtime type of A's b property is of class C.

Thank you.

Activity

Show:

Taylor Mathewson April 8, 2010 at 5:50 PM

Hunting around a bit led me to guess that is the issue this duplicates?

I'm linking here just to provide guidance to anyone else who lands on this issue.

Emmanuel Bernard April 8, 2010 at 5:28 PM

There is an open issue on this topic

Taylor Mathewson March 18, 2009 at 5:20 PM

Apologies, code example above should read:

@Indexed
class A{
@IndexedEmbedded
public B b;

}

class B{
...//some indexed fields
}

class C extends B{
...//some more indexed fields
}

Duplicate

Details

Assignee

Reporter

Components

Priority

Created March 18, 2009 at 5:12 PM
Updated July 1, 2010 at 12:42 PM
Resolved April 8, 2010 at 5:28 PM