dacat / sfapi

Automatically exported from code.google.com/p/sfapi
0 stars 0 forks source link

Type Errors returned, not recognize inheritance #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a RadioButtonEnhanced, extending RadioButton
2. Attempt to call "doFlexRadioButton" on RadioButtonEnhanced will fail

What is the expected output? What do you see instead?
 - Object control fails when Type Checking Error is returned

What version of the product are you using? On what operating system?
 - noted in r3

Please provide any additional information below.
 - possible fix: who cares if type checking fails, if the code still
produces the desired functional test result. remove the error, print a warning
 - possible fix: Allow explicit references as parameter to
src.sfapi.commands.RadioButtonCommands. ie call("doFlexRadioButton,
["someId", "true", "edu.cusys.enhanced::RadioButtonEnhanced"])
 - possible fix: replace the method call returning a string comparison
"Tools.getOjectType(child) !=" with a method returning a boolean after
inspecting inheritance 

Note the following code, RadioButtonCommands.as ln4
  if(Tools.getOjectType(child) != ReferenceData.RADIOBUTTON_DESCRIPTION){
    return ErrorMessages.getError(ErrorMessages.ERROR_TYPE_MISMATCH, [id,
ReferenceData.RADIOBUTTON_DESCRIPTION]);
  }

Original issue reported on code.google.com by qunyb...@gmail.com on 17 Nov 2009 at 10:41