s200662038 / as3-commons

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

NPE when resolving Type for class which implements internal interface #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Call Type.forName for class which implements internal interface

What is the expected output? What do you see instead?
Expected: Type instance
Instead: Null Pointer Error

What version of the product are you using? On what operating system?
I am using as3commons Reflect, version 1.3.4. OS : Windows 7 Pro

Please provide any additional information below.
Problem occurs in class JSONTypeProvider in line 69.
Reproduction code:
1. Interface :
internal interface InternalInterface {
}
2. Class :
public class PublicClass implements InternalInterface {
    public function PublicClass() {
    }
}
3. Problem :
 var type : Type = Type.forName("package.PublicClass");

Original issue reported on code.google.com by jan.kor...@gmail.com on 14 Oct 2011 at 8:06

GoogleCodeExporter commented 9 years ago
Hi there,

we'll try to get this sorted as soon as possible. Thank you for posting the 
issue.

cheers,

Roland

Original comment by ihatelivelyids on 14 Oct 2011 at 8:32

GoogleCodeExporter commented 9 years ago

Original comment by ihatelivelyids on 14 Oct 2011 at 8:33

GoogleCodeExporter commented 9 years ago
Hi,

the has been fixed, changes are available in the trunk. The Type.interfaces 
array will have one entry with just the name of the interface. When trying to 
invoke Type.forName() with that interface will yield a NULL result. (no error)

cheers,

Roland

Original comment by ihatelivelyids on 15 Oct 2011 at 10:38

GoogleCodeExporter commented 9 years ago
Hi,

thanks a lot for quick response. When new version of library will be released?

regards,
Jan

Original comment by jan.kor...@gmail.com on 15 Oct 2011 at 1:57

GoogleCodeExporter commented 9 years ago
Hi,

not sure when a next release will be made, for now you can use the latest 
snapshot from our maven repository:

http://projects.yoolab.org/maven/content/repositories/snapshots/org/as3commons/a
s3commons-reflect/1.5.1-SNAPSHOT/as3commons-reflect-1.5.1-20111015.140023-4.swc

cheers,

Roland

Original comment by ihatelivelyids on 15 Oct 2011 at 2:03