You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Igor Costa <ig...@gmail.com> on 2013/12/05 04:05:17 UTC

[FlexJS] some warnings while trying to use basic alert

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:40:
WARNING - assignment to property valuesImpl of
org.apache.flex.core.ValuesManager.prototype
found   : null
required: function (this:org.apache.flex.core.ValuesManager):
(null|org.apache.flex.core.ValuesManager)
org.apache.flex.core.ValuesManager.prototype.valuesImpl = null;
^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:46:
WARNING - Bad type annotation. Unknown type object
 * @return {object} The value.
            ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:56:
WARNING - Bad type annotation. Unknown type object
 * @param {object} value being set.
           ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:59:
WARNING - assignment to property valuesImpl of
org.apache.flex.core.ValuesManager
found   : (null|object)
required: function (this:org.apache.flex.core.ValuesManager):
(null|org.apache.flex.core.ValuesManager)
  this.valuesImpl = value;
  ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Alert.js:71:
WARNING - Missing return statement. Function expected to return
(Object|null).
    function() {
    ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Alert.js:174:
WARNING - actual parameter 1 of goog.events.listen does not match formal
parameter
found   : (Object|null)
required: (EventTarget|goog.events.Listenable|null)
    goog.events.listen(ok.element, 'click',
                       ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Alert.js:181:
WARNING - actual parameter 1 of goog.events.listen does not match formal
parameter
found   : (Object|null)
required: (EventTarget|goog.events.Listenable|null)
    goog.events.listen(cancel.element, 'click',
                       ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Alert.js:188:
WARNING - actual parameter 1 of goog.events.listen does not match formal
parameter
found   : (Object|null)
required: (EventTarget|goog.events.Listenable|null)
    goog.events.listen(yes.element, 'click',
                       ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Alert.js:195:
WARNING - actual parameter 1 of goog.events.listen does not match formal
parameter
found   : (Object|null)
required: (EventTarget|goog.events.Listenable|null)
    goog.events.listen(nob.element, 'click',
                       ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\TitleBar.js:51:
WARNING - Missing return statement. Function expected to return
(Object|null).
    function() {
    ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\beads\models\TitleBarModel.js:62:
WARNING - inconsistent return type
found   : string
required: (String|null)
  return this.title_;
         ^

C:\Users\riacycle\Adobe Flash Builder
4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\beads\models\TitleBarModel.js:109:
WARNING - inconsistent return type
found   : boolean
required: (Boolean|null)
  return this.showCloseButton_;
         ^

0 error(s), 12 warning(s), 93,0% typed




----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org

Re: [FlexJS] some warnings while trying to use basic alert

Posted by Peter Ent <pe...@adobe.com>.
Hi,

I submitted changes the other day which should have cleared a lot of these
up, especially ones in ValuesManager. I'll look into the other ones, too.

Peter Ent
Adobe Systems

On 12/4/13 10:05 PM, "Igor Costa" <ig...@gmail.com> wrote:

>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>40:
>WARNING - assignment to property valuesImpl of
>org.apache.flex.core.ValuesManager.prototype
>found   : null
>required: function (this:org.apache.flex.core.ValuesManager):
>(null|org.apache.flex.core.ValuesManager)
>org.apache.flex.core.ValuesManager.prototype.valuesImpl = null;
>^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>46:
>WARNING - Bad type annotation. Unknown type object
> * @return {object} The value.
>            ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>56:
>WARNING - Bad type annotation. Unknown type object
> * @param {object} value being set.
>           ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\core\ValuesManager.js:
>59:
>WARNING - assignment to property valuesImpl of
>org.apache.flex.core.ValuesManager
>found   : (null|object)
>required: function (this:org.apache.flex.core.ValuesManager):
>(null|org.apache.flex.core.ValuesManager)
>  this.valuesImpl = value;
>  ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:71:
>WARNING - Missing return statement. Function expected to return
>(Object|null).
>    function() {
>    ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:174:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(ok.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:181:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(cancel.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:188:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(yes.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Al
>ert.js:195:
>WARNING - actual parameter 1 of goog.events.listen does not match formal
>parameter
>found   : (Object|null)
>required: (EventTarget|goog.events.Listenable|null)
>    goog.events.listen(nob.element, 'click',
>                       ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\Ti
>tleBar.js:51:
>WARNING - Missing return statement. Function expected to return
>(Object|null).
>    function() {
>    ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\be
>ads\models\TitleBarModel.js:62:
>WARNING - inconsistent return type
>found   : string
>required: (String|null)
>  return this.title_;
>         ^
>
>C:\Users\riacycle\Adobe Flash Builder
>4.7\FlexParaJavascript\bin\js-debug\org\apache\flex\html\staticControls\be
>ads\models\TitleBarModel.js:109:
>WARNING - inconsistent return type
>found   : boolean
>required: (Boolean|null)
>  return this.showCloseButton_;
>         ^
>
>0 error(s), 12 warning(s), 93,0% typed
>
>
>
>
>----------------------------
>Igor Costa
>www.igorcosta.com
>www.igorcosta.org