Skip to content

Aadl2JavaValidator doesn't check CLASSIFIER_MATCH correctly #2344

@AaronGreenhouse

Description

@AaronGreenhouse

Aadl2JavaValidator doesn't check Classifier_Match sematnics correctly in the method testClassifierMatchRule(). According to the standard:

If the destination classifier is a component type, then any implementation of the source matches.

But the method also allows the src to be a type and the dest to the an implementation of the type. This is well known to be unsafe.

Also, the method currently generates warnings when one classifier is a type and the other is an implementation and the implementation is not an implementation of that type. This should be an error.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions