Operation call that results in Set(OclAny)

Help
2012-02-05
2013-04-29
  • Raquel Pillat
    Raquel Pillat
    2012-02-05

    Hi,
    I'm trying to load a file .use in the tool, but this results in the following problem:

    "Operation call results in type 'Set(OclAny)'. This may lead to unexpected behavior. You can change this check using the -oclAnyCollectionsChecks switch."

    Then, I tried the command "use -oclAnyCollectionsChecks file.use", but the result is "invalid argument 'oclAnyCollectionsChecks' ".

    How can I solve or ignore this problem and load the file anyway?
    Thanks.
    -
    Raquel

     
  • Lars Hamann
    Lars Hamann
    2012-02-06

    Hi Raquel,
    the error message is a little bit misleading. sorry for that.
    You need to specify the one of the following options after "-oclAnyCollectionsChecks:" (W)arn|(E)rror|(I)gnore.

    So

    use -oclAnyCollectionsChecks:W file.use
    

    only warns you about OclAny in Collections.

    Best regards!
    Lars