Spurious Model Validation Error on service method with parameter of type collection

Description

I just switched to using 3.2-RC1-SNAPSHOT and I'm getting a validation error on a non-webservice service method. The error states that I cannot have a parameter of type "Collection" in a webservice method.

I agree that webservices should use arrays instead of collections, but neither the service class or method in question are marked as being a webservice or webservice operation. I have found this error to be consistent on two separate models. I have attached a sample model to this bug.

I get the following error and stack trace:

ERROR [AndroMDA] Model Validation Failed - 1 VALIDATION ERROR
ERROR [AndroMDA] 1) [Data::CarService::getTask::resources]:A web service parameter can NOT be a collection type You'll need to model an array instead.
org.andromda.core.ModelValidationException: Model validation failed!
at org.andromda.core.engine.ModelProcessor.printValidationMessages(ModelProcessor.java:434)
at org.andromda.core.engine.ModelProcessor.validateModel(ModelProcessor.java:374)
at org.andromda.core.engine.ModelProcessor.loadModelIfNecessary(ModelProcessor.java:324)
at org.andromda.core.engine.ModelProcessor.loadIfNecessary(ModelProcessor.java:504)
at org.andromda.core.engine.ModelProcessor.processModels(ModelProcessor.java:217)
at org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:143)
at org.andromda.core.engine.ModelProcessor.process(ModelProcessor.java:79)
at org.andromda.core.engine.Engine.run(Engine.java:82)
at org.andromda.core.AndroMDA.run(AndroMDA.java:197)
...

Environment

Occurs on both MacOSX and Linux under Java 1.4.2

Assignee

Chad Brandon

Reporter

Andrew Kinard

Labels

None

Components

Priority

Critical
Configure