Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-2199

[android] v8 optional float/double argument failure

    Details

      Description

      I am trying to add default values support to Ti.App.Properties.
      Something like this

      @Kroll.method
      public double getDouble(String key, @Kroll.argument(optional=true) double defaultValue)
      {
      	return appProperties.getDouble(key, defaultValue);
      }
      

      If i try to compile with that code i get an error:

      [exec] src/native/../../generated/ti.modules.titanium.app.properties.PropertiesModule.cpp:314:22: error: invalid suffix "d" on integer constant
      [exec] make: *** [/Volumes/data/dev/titanium/titanium_mobile/android/runtime/v8/obj/local/armeabi/objs/kroll-v8/__/__/generated/ti.modules.titanium.app.properties.PropertiesModule.o] Error 1
      [exec] make: *** Waiting for unfinished jobs....
      

        Attachments

          Activity

            People

            • Assignee:
              dsefton Daniel Sefton
              Reporter:
              farfromrefuge Martin Guillon (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration