Comments (3)
hey there, no, the clazz property shouldn't be null, unless maybe if the Class
is an internal one. I will need to experiment a bit.
As for the other issue you've added, I won't have time to get into this until
next week, I'm sorry for this, but my dayjob is rather busy at the moment. I'll
definitely follow-up though, bear with me :)
Original comment by [email protected]
on 3 Feb 2011 at 12:26
from as3-commons.
Thanks for your help.
So you say, "unless maybe if the Class is an internal one". Well, that's the
situation in my example code above, so that is probably the issue. :( I know
that the native flash.utils.getDefinitionByName() does not return internal
classes. I thought ByteCodeType might have some magic. :)
However, if you notice in my above example, it requests the internal class
using ByteCodeType.forClass(). But, this *still* does not fill in the clazz of
the returned ByteCodeType instance (even though the library has just been
"given" a reference to that very Class). Perhaps it should be filled in for
this case? Although it might be of marginal overall usefulness, it would allow
client code to at least treat ByteCodeType instances for internal and external
classes the same in cases similar to my example.
Original comment by [email protected]
on 3 Feb 2011 at 7:14
from as3-commons.
I'm actually now checking to see if the clazz property is null in the
ByteCodeType.forClass() method, if its null I assign the Class instance that
was passed to the method as its value. This should solve your problem with
ByteCodeType.forClass().
Original comment by ihatelivelyids
on 26 Mar 2011 at 10:51
- Changed state: Fixed
from as3-commons.
Related Issues (20)
- File is broken after re-saving it HOT 3
- No match for Opcode: 0xbb (187) HOT 3
- Error #2030: (EOF) HOT 3
- Error #1125: The index 1073741823 is out of range 210 while reading file HOT 3
- [Feature Request] HOT 4
- Vector class name truncated
- Type Coercion failed: Array to Vector.<Op> and Array to Vector.<JumpTargetData> HOT 2
- Invalid parsing of string operand when defining method body from source string.
- Error #1034: Ошибка типа Coercion: невозможно преобразовать org.as3commons.bytecode.abc::Multiname@af8a541 в org.as3commons.bytecode.abc.QualifiedName.
- Can't create class members of type Vector.<T>
- Class org.as3commons.logging::ILogger could not be found. HOT 1
- Bug in log4j configuration HOT 1
- equals and equalsIgnoreCase are both using regex improperly HOT 1
- Chainsaw gateway generates malformed XML
- ArrayUtils.shuffle algorithm results in a biased shuffle HOT 1
- NPE when ByteCodeType.fromLoader is invoked in an empty Application HOT 1
- MethodBuilder.addAsmSource() #1034 conversion error
- On method body definition, #1065 error accessing private or protected property
- Ability to get abcBytes position from DoABC tag
- as3commons-bytecode - issue creating metadata against accessors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as3-commons.