dkxw / as3reflect Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/as3reflect
License: Apache License 2.0
Automatically exported from code.google.com/p/as3reflect
License: Apache License 2.0
What steps will reproduce the problem?
1. create a MethodInvoker for invoking a method on a remote object
2. invoke the MethodInvoker
What is the expected output? What do you see instead?
- expected: normal execution of the remote call
- actual: no method is found, because Type does not recognize proxied
methods -> don't use type.getMethod()
Original issue reported on code.google.com by christophe.herreman
on 26 Jan 2009 at 9:05
I think that the title is enough, right? :)
Would be very nice to have it in a maven repository.
Regards,
Pedro
Original issue reported on code.google.com by [email protected]
on 24 Jan 2009 at 6:28
The application must be able to filter all log entries.
What steps will reproduce the problem?
1. Call Type.forName() for an undefined class.
2. Observe an unconditional trace log entry.
For example, this happens for classes generated by Flex:
Type.forName error: Error #1065: Variable AuthenticationAgent is not
defined. The class 'ChannelSet.as$125::AuthenticationAgent' is probably an
internal class or it may not have been compiled.
This is not really an error, it should be treated as a warning. Instead of
the trace() call, a logging framework should be used (level "Warn"), so
that the application can decide if these kind of entries should be
included in the log.
What version of the product are you using? On what operating system?
as3reflect as of 1-20-09
Original issue reported on code.google.com by [email protected]
on 20 Jan 2009 at 7:51
TypeXmlParser.parseAccessorsByModifier should create the Accessor instance with
Type.forName(accessorXML.@declaredBy)
instead of
type
in the declareType field.
Original issue reported on code.google.com by [email protected]
on 23 Jan 2009 at 5:08
See attached patch file for the trunk (as of 3-7-2009 8pm PST).
What steps will reproduce the problem?
1. Run unit test TypeTest#testConstructorRecursionHazard.
2. If the queried class has a constructor that uses Type#forClass
(directly or indirectly), a stack overflow occurs. This error is caught
by a try...catch block in _getTypeDescription, therefore the issue is not
observable externally, but in certain situations the stack overflow leads
to partially or fully empty Type instances.
The attached patch fixes the problem by swapping some statements in
Type#forClass.
Original issue reported on code.google.com by [email protected]
on 8 Mar 2009 at 5:10
Attachments:
hasMetaData () currently has this implementation:
public function hasMetaData(key:String):Boolean {
return (getMetaData(key) != null);
}
this should be changed to:
public function hasMetaData(key:String):Boolean {
return (getMetaData(key).length > 0);
}
since getMetaData now always returns an array of metadata for the given
key, and an empty array if the key doesn't exist.
Original issue reported on code.google.com by ihatelivelyids
on 25 Jan 2009 at 3:38
I came to your as3reflect class in the hopes that you'd have a better
solution for wrapped instantiation of new classes. Unfortunately, your
code has the same switch mine does (*cries*).
I came across Metal Hurlant's eval() work though, and it got me thinking:
Obviously, an eval() in AS3 would involve an AS3 parser / compiler with AS3
bytecode as the target, then somehow run the AS3 bytecode.
If there's a way to run arbitrary bytecode, then we could, theoretically,
construct the *bytecode* for creating a new instance and execute it, all
within the newInstance function.
So it then occurred to me that one could, theoretically, write the actual
instantiation function in AS3 assembly, were that possible.
Unfortunately, in this investigation, I found that the construct opcode
must have a static byte telling it how many arguments to pull from the
stack. As such, again, we absolutely HAVE to build the function at
runtime, and execute it.
I'm looking into how the ASC compiler in AS3 executes arbitrary bytecode.
If I get it working, I intend to share how it's done.
Original issue reported on code.google.com by [email protected]
on 15 Mar 2009 at 11:19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.