Hi Alex,

Moved to new thread.

I found out that,

1. When i use the class "A" directly importing from module in mxml file, the compilation executes successfully. 2. But when i create a new class B in my project, extends from class A which is in module and use the new class B in my mxml, compiler throws NullPointerException as in my previous mails.

When i debug the code,

I can see that for the first case, the method is called once for class A. (ASProjectScope.java:getActualDefinition():actualDefinition = fileScopeRequestResult.getMainDefinition(qname)()line 2062 around) But for the second case, the method is called twice. First  pass is successful but the second pass fails.

I have no idea why.

For my project it is not a fatal error, a far as i checked, i can live without it.

I just tried to note if it may cause a problem somewhere.

Thanks,
Serkan

22.11.2018 13:22 tarihinde Serkan Taş yazdı:

I moved the classes in to the same package and i see that compiles without any error. But when i use the classes from a library than it fails.

I am going to try to prepare a smaller test case if i can find a way :)

Thanks,
Serkan

22.11.2018 13:13 tarihinde Alex Harui yazdı:

Looks ok to me.  Try building a smaller test case.

-Alex

*From: *Serkan Taş <[email protected]>
*Reply-To: *"[email protected]" <[email protected]>
*Date: *Thursday, November 22, 2018 at 1:08 AM
*To: *"[email protected]" <[email protected]>
*Subject: *Re: Work on Emulation

Hi Alex,

Here is the content :

package com.adobe.fiber.core
{
   public namespace model_internal = "http://www.adobe.com/2008/flex/model/internal"; <http://www.adobe.com/2008/flex/model/internal>;
}

And yes it is included.

When getting scope for : http://www.adobe.com/2006/flex/mx/internal

Result is :

SWCFileScope for "D:\dev\royale-emulation-works\github\royale-asjs\frameworks\js\libs\MXRoyaleJS.swc"
  mx_internal
http://www.adobe.com/2006/flex/mx/internal

Which is empty for http://www.adobe.com/2008/flex/model/internal

SWC file scope can not be retrieved. I may have missing something while packaging 3rd part libs.

Thanks,
Serkan

22.11.2018 01:14 tarihinde Alex Harui yazdı:

    What does model_internal.as look like and is it included in the
    source or libraries?

    Compare to mx/core/mx_internal.as

    Thanks,

    -Alex

    *From: *Serkan Taş <[email protected]>
    <mailto:[email protected]>
    *Reply-To: *"[email protected]"
    <mailto:[email protected]> <[email protected]>
    <mailto:[email protected]>
    *Date: *Wednesday, November 21, 2018 at 1:09 PM
    *To: *"[email protected]" <mailto:[email protected]>
    <[email protected]> <mailto:[email protected]>
    *Subject: *Re: Work on Emulation

    Hi Alex,

    For getContainingToplevelDefinition (DefinitionBase.java:537),
    input parameter is definition =
    "http://www.adobe.com/2008/flex/model/internal";
    <http://www.adobe.com/2008/flex/model/internal>


    Then trying to get :

    ASScope currentContainingScope = definition.getContainingASScope();

    returns null.

    Later,

    currentContainingScope.getContainingDefinition(); is called
    which throws  exception.

    It is related with namespaces as you referenced.

    I am going to comment-out the function call and go forward for now.

    Thanks,
    Serkan

    21.11.2018 01:26 tarihinde Alex Harui yazdı:

        Regarding the compiler errors.  My guess is that it has to
        do with the model_internal namespace.  Maybe get rid of it
        for now unless it is in a lot of places.  Or create a simple
        test case.

        -Alex

        *From: *Serkan Taş <[email protected]>
        <mailto:[email protected]>
        *Reply-To: *"[email protected]"
        <mailto:[email protected]> <[email protected]>
        <mailto:[email protected]>
        *Date: *Tuesday, November 20, 2018 at 1:36 PM
        *To: *"[email protected]"
        <mailto:[email protected]> <[email protected]>
        <mailto:[email protected]>
        *Subject: *Re: Work on Emulation

        Hi,

        I submitted
        PR:https://github.com/apache/royale-asjs/pull/349
        
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Froyale-asjs%2Fpull%2F349&data=02%7C01%7Caharui%40adobe.com%7C2df0cabbab034f5638ca08d6505a204a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636784745369906701&sdata=KD%2BN1Rb2XMwyaM8US9pKzCMX7xy9q75ZadhJ4uJaca0%3D&reserved=0>

        I am getting compiler errors. I pasted three errors in file 
        :
        https://drive.google.com/open?id=15b3Yvke-H96L1ud_9YE1JW4a4dgiA3F5
        
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdrive.google.com%2Fopen%3Fid%3D15b3Yvke-H96L1ud_9YE1JW4a4dgiA3F5&data=02%7C01%7Caharui%40adobe.com%7C2df0cabbab034f5638ca08d6505a204a%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636784745369906701&sdata=0pm7Rjxh4jYkFzukiJMKlxHx4XDv2mkTxPcu4Obea38%3D&reserved=0>

        I leaving for today. I am going to debug compiler and try to
        understand what is going wrong when i have time.

        Thanks,
        Serkan

Reply via email to