Share

Jalopy Java Source Code Formatter

Tracker: Bugs

3 Generics causes loss of whitespace - ID: 1335107
Last Update: Comment added ( notzippy )

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".


Adam Zell ( zellster ) - 2005-10-22 21:36

3

Closed

None

Nobody/Anonymous

Core

1.5rc1

Public


Comment ( 1 )

Date: 2005-10-24 21:47
Sender: notzippyAccepting Donations

Logged In: YES
user_id=723231

Found the problem. & Corrected in CVS


Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2005-10-24 21:47 notzippy
close_date - 2005-10-24 21:47 notzippy
priority 5 2005-10-22 21:45 zellster