You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2014/01/28 23:25:38 UTC
[jira] [Resolved] (CB-4984) Can't name my class CordovaActivity
[ https://issues.apache.org/jira/browse/CB-4984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-4984.
----------------------------
Resolution: Fixed
Assignee: Joe Bowser
Looks good, accepting the patch!
> 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
> Assignee: Joe Bowser
> 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.5#6160)