I tried to do this:
@SuppressWarnings("unchecked")
public static <T extends ERXGenericRecord> ERTaggableEntity<T>
taggableEntity(EOEntity entity) {
Class<? extends ERTaggableEntity> taggableEntityClass =
ERTaggableEntity._taggableEntities.objectForKey(entity.name());
ERTaggableEntity<T> taggableEntity;
if (taggableEntityClass == null) {
taggableEntity = new ERTaggableEntity<T>(entity);
ERTaggableEntity.setTaggableEntityForEntityNamed(taggableEntity,
entity.name());
but get the following compiler error:
The method setTaggableEntityForEntityNamed(Class<? extends
ERTaggableEntity<?>>, String) in the type ERTaggableEntity is not applicable
for the arguments (ERTaggableEntity<T>,
String)
Thanks
James
On Oct 19, 2012, at 2:58 PM, Mike Schrag <[email protected]> wrote:
> ERTaggableEntity.setTaggableEntityForEntityNamed
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]