[ 
https://issues.apache.org/jira/browse/CB-4984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser updated CB-4984:
---------------------------

    Fix Version/s:     (was: 3.3.0)
                   3.4.0

> Can't name my class CordovaActivity
> -----------------------------------
>
>                 Key: CB-4984
>                 URL: https://issues.apache.org/jira/browse/CB-4984
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.1.0
>         Environment: android sdk tools 22.2.1
> android sdk platform-tools 18.0.1
> Android 4.3 (API 18)
>            Reporter: Anis Kadri
>            Priority: Minor
>             Fix For: 3.4.0
>
>
> Yes it's super silly but the node create script should fail if user enters 
> in: "CordovaActivity" as an activity name since we inherit from a class that 
> has that name. Might also apply to package names.
> steps to reproduce
> {code}
> ./bin/create /path/to/project mypackage.name CordovaActivity
> {code}
> Results:
> {code}
> -compile:
>     [javac] Compiling 6 source files to /private/tmp/android/bin/classes
>     [javac] /private/tmp/android/src/io/cordova/CordovaActivity.java:25: 
> cyclic inheritance involving io.cordova.CordovaActivity
>     [javac] public class CordovaActivity extends CordovaActivity 
>     [javac]        ^
>     [javac] 1 error
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)

Reply via email to