Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4984

Can't name my class CordovaActivity

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.4.0
    • Component/s: cordova-android
    • Labels:
      None
    • Environment:

      android sdk tools 22.2.1
      android sdk platform-tools 18.0.1
      Android 4.3 (API 18)

      Description

      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

      ./bin/create /path/to/project mypackage.name CordovaActivity
      

      Results:

      -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
      
      

        Attachments

          Activity

            People

            • Assignee:
              bowserj Joe Bowser
              Reporter:
              anis Anis Kadri
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: