0 Replies Latest reply: Dec 31, 2007 5:12 PM by -==cfSearching==- RSS

    javacast not working on inherited method

    -==cfSearching==- Community Member
      I am trying to invoke a method of a core java class. I am using javacast and have verified the the method signature is correct

      <cfset x = model.getBlue( javacast("int", pixel) )>
      Signature: getBlue(int) int

      But ColdFusion still throws an exception

      quote:

      ColdFusion found 2 methods that matched the provided arguments. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity.


      The getBlue method is not overloaded but it is inherited from a parent class. Perhaps that is why CF reports finding 2 methods with that name.

      Has anyone else had this problem? Is there a way around it?