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 2020/07/06 17:03:13 UTC
[GitHub] [royale-compiler] carlosrovira opened a new issue #155: Class allow declare the same public var twice
carlosrovira opened a new issue #155:
URL: https://github.com/apache/royale-compiler/issues/155
Hi,
I just found that I can declare the same var twice and App was compiling without problem.
I put `public var wip:Boolean;` twice in the same Value Object AS3 class. If I use it somewhere I get "Ambiguous reference to wip" error
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] joshtynjala commented on issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
joshtynjala commented on issue #155:
URL: https://github.com/apache/royale-compiler/issues/155#issuecomment-675565068
I can reproduce with your class. It appears that the issue is caused by `[Bindable]`. When I remove it from the class, I get the expected "A conflict exists with definition wip in namespace public." error.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] joshtynjala commented on issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
joshtynjala commented on issue #155:
URL: https://github.com/apache/royale-compiler/issues/155#issuecomment-675122028
With the following code, I get an error:
```actionscript
package com.example
{
public class MyClass
{
public function MyClass()
{
}
public var wip:Boolean;
public var wip:Boolean;
}
}
```
The error:
> A conflict exists with definition test in namespace public.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] joshtynjala edited a comment on issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
joshtynjala edited a comment on issue #155:
URL: https://github.com/apache/royale-compiler/issues/155#issuecomment-675122028
With the following code, I get an error:
```actionscript
package com.example
{
public class MyClass
{
public function MyClass()
{
}
public var wip:Boolean;
public var wip:Boolean;
}
}
```
The error:
> A conflict exists with definition wip in namespace public.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] asfgit closed issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
asfgit closed issue #155:
URL: https://github.com/apache/royale-compiler/issues/155
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] carlosrovira commented on issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #155:
URL: https://github.com/apache/royale-compiler/issues/155#issuecomment-675355817
Hi Josh,
I still can reproduce this problem. You can reproduce in the following project: https://github.com/codeoscopic/avant2-website
If you go to:
https://github.com/codeoscopic/avant2-website/blob/b6226bfb25bcac8b6856951ea6d95927aac61ce4/avant2-products-companies/src/main/royale/com/codeoscopic/avant/vos/Product.as
and duplicate the line : `public var wip:Boolean;`and compile you'll get:
```
[INFO] --- royale-maven-plugin:0.9.8-SNAPSHOT:compile-app (default-compile-app) @ avant2-products-companies ---
[INFO] Executing MXMLC in tool group Royale with args: [-load-config=/Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/target/compile-app-config.xml, -js-default-initializers=true, -source-map=true, -compiler.exclude-defaults-css-files=MXRoyale-0.9.8-SNAPSHOT-js.swc:defaults.css, -keep-as3-metadata+=Inject,Dispatcher,EventHandler,PostConstruct,PreDestroy,ViewAdded,ViewRemoved,Bindable,Transient, -keep-code-with-metadata=Inject, -js-dynamic-access-unknown-members=true, -js-output=/Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/target/javascript, -compiler.targets=JSRoyale, /Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/src/main/royale/App.mxml]
can't get watcher for
/Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/src/main/royale/com/codeoscopic/avant/controllers/CompanyController.as(164): col: 15 Error: Ambiguous reference to wip
product.wip = true;
^
/Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/src/main/royale/com/codeoscopic/avant/renderers/ProductDataContainerItemRenderer.mxml(51): col: 76 Error: Ambiguous reference to wip
<js:FontAwesomeIcon text="{FontAwesome5IconType.COG}" visible="{product.wip}"
^
/Users/carlosrovira/Dev/Codeoscopic/Source/avant2-website/avant2-products-companies/src/main/royale/com/codeoscopic/avant/renderers/TableCollectionPropertyItemRenderer.mxml(53): col: 49 Error: Ambiguous reference to wip
if(!wipExist && product.wip)
^
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.484 s
[INFO] Finished at: 2020-08-18T10:55:20+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.royale.compiler:royale-maven-plugin:0.9.8-SNAPSHOT:compile-app (default-compile-app) on project avant2-products-companies: There were errors during the build. Got return code 3 -> [Help 1]
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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
[GitHub] [royale-compiler] carlosrovira commented on issue #155: Class allow declare the same public var twice
Posted by GitBox <gi...@apache.org>.
carlosrovira commented on issue #155:
URL: https://github.com/apache/royale-compiler/issues/155#issuecomment-708632805
cool :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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