How do I get a strongly typed collection from BlazeDS?

后端 未结 4 1922
感动是毒
感动是毒 2021-02-09 18:45

I\'ve exposed a Spring bean to my Flex app via BlazeDS. In my Java code I return strongly typed lists. e.g.

public List getFolders(String path) {
          


        
4条回答
  •  猫巷女王i
    2021-02-09 19:02

    Java generics are stripped out at compile time. The JVM does not type collections at run time. Anyway, I don't see your calling code, but it should be putting the returned value from java into a variable that is declared kinda like this:

    folders:ArrayCollection.
    

提交回复
热议问题