-
1. Re: Beta 15.0.0.349 + Android = doesn't work?
Pravendra Oct 26, 2014 11:36 PM (in response to Unsanctioned)Thanks for reporting the issue.
I have tried to reproduce the issue. But AIR app on android is working fine.
Could you please share a sample app so that we can easily reproduce it
Thanks,
Pravendra
-
2. Re: Beta 15.0.0.349 + Android = doesn't work?
Unsanctioned Oct 27, 2014 12:40 AM (in response to Pravendra)I'll see what I can do. It's a *very* large project (already a released game on other platforms), so distilling a simple reproduction case may take some time.
-
3. Re: Beta 15.0.0.349 + Android = doesn't work?
Unsanctioned Oct 27, 2014 8:48 PM (in response to Pravendra)For those who might also run into this: we tracked it down while reducing our game to a sample app. It turns out the previous compiler was more lenient about a stray "." when referencing an object property. The distilled code that shows the error is as follows. The details of the ANEs used don't seem to matter. The failure is in the call to "MyNativeExtension.extension..initExtension()", which fails at runtime in a release build with 15.0.0.349 when it didn't fail in 15.0.0.249. The error it gives doesn't make sense, as it suggests you're trying to derive from a final class, which makes this sort of error hard to find.
package {
import com.nativeextension.MyNativeExtension;
import com.nativeextension.AndroidLog;
[SWF(frameRate = "100", width = "1024", height = "768")]
public final class GameMainAndroidMobile extends GameApplicationMobileAir
{
public function GameMainAndroidMobile()
{
addUncaughtErrorHandler();
var xml : XML = NativeApplication.nativeApplication.applicationDescriptor;
var ns : Namespace = xml.namespace();
var version : String = xml.ns::versionNumber;
AndroidLog.log.i(LOG_TAG, "Application initializing as " + NativeApplication.nativeApplication.applicationID + " version " + version);
MyNativeExtension.create();
MyNativeExtension.extension..initExtension();
}
}
}
-
4. Re: Beta 15.0.0.349 + Android = doesn't work?
Jitender thakur Nov 5, 2014 2:22 AM (in response to Unsanctioned)Could you please share the ANE you are using. It will help us in investigating the problem.
-
5. Re: Beta 15.0.0.349 + Android = doesn't work?
Unsanctioned Nov 5, 2014 3:01 AM (in response to Jitender thakur)As I mentioned in the previous post, the particular ANE doesn't matter. The important difference is the handling of the typo in the code where there is a double ".": MyNativeExtension.extension .. initExtension();
249 apparently accepts that without a warning, while 349 throws an error.
-
6. Re: Beta 15.0.0.349 + Android = doesn't work?
Jitender thakur Nov 6, 2014 1:19 AM (in response to Unsanctioned)Hi,
The error we are getting on accessing a function with “..” is ( TypeError: Error #1016: Descendants operator (..) not supported on type functionName )
But it’s a desired error, it’s not specific to ANE, it will appears with normal functions of other class also.
We just wonder how you are not getting this on 15.0.0.249 as we are able to reproduce it on both builds.
Attaching the sample code we are using for your reference Dropbox - DoubleDotOperator.zip
Thanks,
Jitender


