1. #1
    Ext GWT Premium Member
    Join Date
    Mar 2009
    Posts
    226
    Vote Rating
    3
    The_Jackal is on a distinguished road

      0  

    Default [FIXED] [1.2.3] NumberField<Integer> error - the type is not NumberField generic

    [FIXED] [1.2.3] NumberField<Integer> error - the type is not NumberField generic


    Hi,

    I raised a bug that I couldn't use TextField<Integer> and was directed to use NumberField (see http://extjs.com/forum/showthread.php?t=62660).

    The java doc is incorrect - NumberField can not be parameterized with generics. It extends from TextField<Number> but does not have a generic constructor.

    The full comiler error is:
    Code:
    The type NumberField is not generic; it cannot be parameterized with arguments <Integer>
    The javadoc states:

    NumberField<Integer> field = new NumberField<Integer>;
    field.setPropertyEdtiorType(Integer.class);
    When the correct code is:

    NumberField field = new NumberField();
    field.setPropertyEdtiorType(Integer.class);
    Regards,
    The Jackal

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Thanks, we will update the javadocs.

  3. #3
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

  4. #4
    Ext User
    Join Date
    Apr 2008
    Posts
    376
    Vote Rating
    0
    zaccret is on a distinguished road

      0  

    Default


    Huh... Why not add a parameter to NumberField (N extends Number) instead of changing the javadoc ?

  5. #5
    Ext User
    Join Date
    Jun 2008
    Posts
    365
    Vote Rating
    0
    sdc is on a distinguished road

      0  

    Default


    Quote Originally Posted by zaccret View Post
    Huh... Why not add a parameter to NumberField (N extends Number) instead of changing the javadoc ?
    +1

  6. #6
    Ext User
    Join Date
    Jun 2008
    Posts
    365
    Vote Rating
    0
    sdc is on a distinguished road

      0  

    Default


    Mmm. Maybe it is not relevant here to add a parameter as you have to give a specific Class to the property editor.

Thread Participants: 3

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi