Menu

#435 Generics causes loss of whitespace

1.5rc1
closed
nobody
Core (71)
3
2005-10-24
2005-10-22
Adam Zell
No

Windows XP
Jalopy command line 1.0.5
Jalopy 1.5b2

Given the following source code:

public final class JalopyTest
{
public static <T extends Object> T parse(final
Class<T> cls)
{
return null;
}
}

and the command line:

$ ./bin/jalopy.sh -d _New JalopyTest.java

results in an invalid Java source file. The processed
file loses whitespace between "T" and "parse":

$ cat _New/JalopyTest.java
/**
* DOCUMENT ME!
*
* @author $author$
* @version $Revision$
*/
public final class JalopyTest
{
/**
* DOCUMENT ME!
*
* @param cls DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public static <T extends Object> Tparse(final
Class<T> cls)
{
return null;
}
}

Note the "Tparse" token instead of "T parse".

Discussion

  • Adam Zell

    Adam Zell - 2005-10-22
    • priority: 5 --> 3
     
  • S

    S - 2005-10-24
    • status: open --> closed
     
  • S

    S - 2005-10-24

    Logged In: YES
    user_id=723231

    Found the problem. & Corrected in CVS

     

Log in to post a comment.