christophe-hall / as3-commons

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

Retrieve ArrayElementType metadata from a property #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new class with an Array property.
2. Add [ArrayElementType("qualified.Clazz")], [Bindable] and [Transient] to 
that property.
3. Try to retrieve all metadata tags from that property at runtime with 
"accessorProperty".metaData 

What is the expected output? What do you see instead?
metaData array should contain ArrayElementType, Bindable and Transient 
Metadata, but only Bindable and Transient appear.

What version of the product are you using? On what operating system?
I'm using as3commons-reflect-1.3.swc on a Windows XP machine with Eclipse and 
FlexBuilder 3.

Please provide any additional information below.
I've noticed that only TRANSIENT and BINDABLE static consts are defined in 
class Metadata.as 
(http://as3-commons.googlecode.com/svn/trunk/as3-commons-reflect/src/main/action
script/org/as3commons/reflect/Metadata.as). Is it the reason of the issue? I'm 
doing anything wrong?

I'm sorry if it isn't really a bug. Thanks!

Original issue reported on code.google.com by davidcan...@gmail.com on 3 Feb 2011 at 11:49

Attachments:

GoogleCodeExporter commented 8 years ago
I think ArrayElementType is a compiler specific piece of metadata which 
doesn´t get compiled automatically into the result ting SWF.
Try and add this compiler argument:
-keep-as3-metadata+=ArrayElementType

and see if the problem persists.

Original comment by rol...@stackandheap.com on 3 Feb 2011 at 12:28

GoogleCodeExporter commented 8 years ago
You were right. That solved the problem. Thank you so much!

Original comment by davidcan...@gmail.com on 3 Feb 2011 at 12:47

GoogleCodeExporter commented 8 years ago
closing this as it´s not a bug

Original comment by ihatelivelyids on 3 Feb 2011 at 12:58