Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[ds annotation tck] Usage of empty array and classes in componet property types is not covered by the TCK #646

@laeubi

Description

@laeubi

Today I wanted to use the following component property type:

/**
 * Annotation that can be used for components to specify the provided adapter
 * types
 * 
 * @since 3.19
 */
@ComponentPropertyType
@Retention(RetentionPolicy.CLASS)
public @interface AdapterTypes {
	/**
	 * See {@link IAdapterFactory#SERVICE_PROPERTY_ADAPTABLE_CLASS}
	 * 
	 * @return the types that this class adapts from
	 */
	Class<?>[] adaptableClass();

	/**
	 * See {@link IAdapterFactory#SERVICE_PROPERTY_ADAPTER_NAMES}
	 * 
	 * @return the types that this class adapts to
	 */
	Class<?>[] adapterNames() default {};
}

sadly PDE-DS Generator generates wrong XML even though it passes the current TCK, so I suspect this case is currently missing from the TCK test cases.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions