You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/11/09 17:35:07 UTC

[GitHub] kennylerma opened a new issue #57: Dependency error when extending class from "external" SWC library

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