1 Reply Latest reply on Jan 10, 2012 11:02 AM by brett_adam

    Class mx.collections.ISort missing from latest framework Maven release

    TheMatouel

      Following migration from Flex 3.3, I had to modify one of my class that implements ICollectionView. This interface had changes in its API that require to replace:

       

              public function get sort():Sort
              {
                  return null;
              }
         
              public function set sort(value:Sort):void
              {
                  //No Impl
              }

       

      by:

       

              public function get sort():ISort
              {
                  return null;
              }
             
              public function set sort(value:ISort):void
              {
                  //No Impl   
              }

       

      Using FLex SDK 4.5 bundled with FlashBuilder 4.5, my code is compiling just fine. However, when I build my project using Maven, I have the following errors:

       

      D:\dev\vanguard\trubk.eclipse37.flex45\core\src\main\flex\com\taleo\vanguard\controls\diag ram\HierarchicalCollectionView.as(147): col: 30 Error: Type was not found or was not a compile-time constant: ISort.

       

              public function get sort():ISort
                                         ^

       

      D:\dev\vanguard\trubk.eclipse37.flex45\core\src\main\flex\com\taleo\vanguard\controls\diag ram\HierarchicalCollectionView.as(153): col: 34 Error: Type was not found or was not a compile-time constant: ISort.

       

              public function set sort(value:ISort):void

       

      I'm using the latest flex framework release in the Maven Repository:

       

      <dependency>
        <groupId>com.adobe.flex.framework</groupId>
        <artifactId>framework</artifactId>
        <version>4.5.0.18623</version>
        <type>pom</type>
      </dependency>

       

      mx.collections.ISort interface is missing from the release and definition of mx.collections.ICollectionView is different from SDK bundled and Maven Repo ...

       

      What can I do ?

       

      EDIT: There are a lot of other differences between SDK available in Maven Repository and downloadable SDK ...