#4 JavaStyle does not work correctly

closed-fixed
None
5
2003-07-24
2001-10-08
Anonymous
No

JavaStyle on attached file says "Pretty printer was
unable to reformat the current buffer".

Exception message:

Encountered "tagu" at line 42, column 11
Was expecting one of:
...

But this file could be compiled by javac => there is no
syntax error

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Sorry I didnt attach file. So this file is:

    /**
    * T?da LWAEFormLabel neprovd nic jinho ne? ?e vyp?e text
    *
    * @author thubalek
    * @created 3. ?jen 2001
    */
    import javax.servlet.jsp.*;
    import java.io.*;
    import java.lang.*;

    /**
    * T?da
    *
    * @author thubalek
    * @created 8. ?jen 2001
    */
    public class LWAEFormTextInput extends LWAEFormItem
    {

    /**
    * Konstruktor t?dy
    *
    * @param name jmno prom?nn v rmci formul?e
    * @since 8. ?jen 2001
    */
    LWAEFormTextInput( String name )
    {
    setName( name );
    }

    /**
    * Metoda render vyp?e do JspWriteru HTML tagy pro tuto polo?ku
    *
    * @param out JspWriter, do kterho se to vypisuje
    * @exception IOException Popis vyjmky
    * @since 1.0
    */
    public void render( JspWriter out ) throws IOException
    {
    // za?tek HTML tagu

    out.println( "<input type=text name=\"" + getName() + "\"" );

    // pokud je maximln dlka nastavena
    if ( getMaxLength() > 0 )
    {
    out.println( " maxlength=" + getMaxLength() );
    }

    // konec HTML tagu
    out.println( ">" );
    }
    }

     
  • Dirk Möbius

    Dirk Möbius - 2002-02-24
    • assigned_to: nobody --> dmoebius
     
  • Dirk Möbius

    Dirk Möbius - 2002-02-24

    Logged In: YES
    user_id=9521

    Sorry for the late response.

    I guess that the errors come from the
    international characters in your source code. Alas, the bug tracker
    mangled the file completely. Could please _attach_ the file with the
    "Check to Upload & Attach File" option below?

    Or, please send this
    file directly to me:
    dmoebius at gmx dot net

    Thanks,
    Dirk.

     
  • Dirk Möbius

    Dirk Möbius - 2002-02-27

    Logged In: YES
    user_id=9521

    Could you please verify if the problem still persist with
    the new JavaStyle 1.2?

    Thanks,
    Dirk.

     
  • Steven G. Twis

    Steven G. Twis - 2003-02-06

    Logged In: YES
    user_id=700881

    JavaStyle will also not handle labels correctly. It insists on
    placing a space before the ':' of a label and prevents saving
    the file.

     
  • Slava Pestov

    Slava Pestov - 2003-05-29
    • assigned_to: dmoebius --> nobody
    • milestone: 101608 -->
    • labels: 102671 -->
     
  • Brad Mace

    Brad Mace - 2003-06-17
    • assigned_to: nobody --> dmoebius
     
  • Mike Atkinson

    Mike Atkinson - 2003-07-24
    • assigned_to: dmoebius --> mikeatkinson
    • status: open --> closed-fixed
     
  • Mike Atkinson

    Mike Atkinson - 2003-07-24

    Logged In: YES
    user_id=476481

    I'm pretty sure this is fixed.

    The comment about spaces before the ":" of a label, may be a
    separate bug, but this is definitely fixed.

    I've redone the parser input/output to handle international
    characters in source code, this is in JRefactory 2.8.00 (not
    yet released).

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks