royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] kennylerma opened a new issue #57: Dependency error when extending class from "external" SWC library
Date Fri, 09 Nov 2018 17:35:07 GMT
kennylerma opened a new issue #57: Dependency error when extending class from "external" SWC
library
URL: https://github.com/apache/royale-compiler/issues/57
 
 
   The included TEST.swc has a simple TestClass class in it.  The swc is compiled correctly
and includes the javascript.  When I use the swc as an included library it works just fine.
 However, if I use the swc as an External library so not to include the classes in the output,
I get the error below.  The key here is that I'm extending the class from the swc.  If I don't
extend this class and just instantiate it compiles fine.
   
   Internal error: java.lang.NullPointerException org.apache.royale.compiler.internal.graph.GoogDepsWriter.generateDeps(GoogDepsWriter.java:214)org.apache.royale.compiler.internal.codegen.mxml.royale.MXMLRoyalePublisher.publish(MXMLRoyalePublisher.java:422)org.apache.royale.compiler.clients.MXMLJSCNative.compile(MXMLJSCNative.java:376)org.apache.royale.compiler.clients.MXMLJSCNative._mainNoExit(MXMLJSCNative.java:234)org.apache.royale.compiler.clients.MXMLJSCNative.mainNoExit(MXMLJSCNative.java:191)org.apache.royale.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:401)org.apache.royale.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:300)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:259)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:241)
   
   
   
   Main document class
   ```
   package
   {
       import TestClass;
   	
       public class Main extends TestClass
       {	
   		
           public function Main()
           {
   			
           }
       }
   }
   ```
   
   Class from TEST.swc
   ```
   package 
   {
       public class TestClass
       {
           public function TestClass() 
   	{
   			
   	}
       }
   }
   ```
   
   [TestFiles.zip](https://github.com/apache/royale-compiler/files/2566896/TestFiles.zip)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message