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

Can't name my class CordovaActivity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.0
    • 3.4.0
    • cordova-android
    • None
    • 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

            bowserj Joey Robert Bowser
            anis Anis Kadri
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: