[Biojava-l] Extending Feature?

Matthew Pocock matthew_pocock@yahoo.co.uk
Tue, 05 Mar 2002 12:17:57 +0000


>>This works fine and I can create a template :
>>
>>MyFeatureType.Template template = new MyFeatureType.Template();
>>template.type = "MyFeature";
>>template.source = source;
>>template.location = new RangeLocation(start, end);
>>template.annotation = Annotation.EMPTY_ANNOTATION;
>>template.myValue = 12345;


> When you try to create an unrecognized Feature type, the
> system automatically falls back to the first recognized
> superclass of your interface (in this case just Feature),
> which explains the ClassCastExceptions you're getting.


Thomas, urrently, is myValue lost into the ether, or is it placed into 
the feature's annotation bundle?

Matthew