christophe-hall / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

ClassUtils.isInterface returning True for Object class #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call ClassUtils.isInterface(Object);

What is the expected output? What do you see instead?
Expect false, but get true instead

Please provide any additional information below.
There needs to be an extra check if the specified class is Object, than
return false as an exception (The describeType() XML for the Object class
doesn't have an <extendsClass/> element).

I've replace the isInterface code with the same code I ised in my previous
patch for the Type.isInterface property. I also added an extra unit test
for ClassUtils.isInterface().

Patches are attached.

Original issue reported on code.google.com by ihatelivelyids on 3 Sep 2009 at 7:45

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by christophe.herreman on 5 Oct 2009 at 4:01