[ https://issues.apache.org/jira/browse/CB-3804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bas Bosman updated CB-3804: --------------------------- Component/s: Plugin InAppBrowser > Not consistently setting PluginResult message for JSON_EXCEPTION Status > ----------------------------------------------------------------------- > > Key: CB-3804 > URL: https://issues.apache.org/jira/browse/CB-3804 > Project: Apache Cordova > Issue Type: Improvement > Components: Android, Plugin InAppBrowser > Affects Versions: 2.7.0 > Reporter: Peter > Assignee: Joe Bowser > Priority: Minor > > The PluginResult appears to be inconsistently created for > Status.JSON_EXCEPTION. > exception message is passed > * InAppBrowser.java: scriptResult = new > PluginResult(PluginResult.Status.JSON_EXCEPTION, e.getMessage()); > exception message is NOT passed > * InAppBrower.java: this.callbackContext.sendPluginResult(new > PluginResult(PluginResult.Status.JSON_EXCEPTION)); > * Globalization.java: callbackContext.sendPluginResult(new > PluginResult(PluginResult.Status.JSON_EXCEPTION)); > * FileTransfer.java: result = new > PluginResult(PluginResult.Status.JSON_EXCEPTION); > * FileTransfer.java: context.sendPluginResult(new > PluginResult(PluginResult.Status.JSON_EXCEPTION)); > * App.java: callbackContext.sendPluginResult(new > PluginResult(PluginResult.Status.JSON_EXCEPTION)); > * PluginManager.java: PluginResult cr = new > PluginResult(PluginResult.Status.JSON_EXCEPTION); > Shouldn't these all be constructed the same? -- This message was sent by Atlassian JIRA (v6.1.5#6160)