commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barrie Treloar (JIRA)" <>
Subject [jira] [Commented] (LANG-378) Add new ToStyle to support MultiLine with Indent
Date Sat, 31 Aug 2013 13:31:51 GMT


Barrie Treloar commented on LANG-378:

When I try to use the Ant test target (or Maven), I get the following error:

    [javac] Compiling 153 source files to E:\ide\maven\commons-lang-trunk\target\tests
    [javac] ...\commons-lang-trunk\src\test\java\org\apache\commons\lang3\exception\
type parameters of <T>T cannot be determined; no unique maximal instance exists for
type variable T with upper bounds T,java.lang.Object
    [javac]         final T clone = SerializationUtils.deserialize(SerializationUtils.serialize(exceptionContext));
    [javac]                                                       ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

But compilation works fine in Eclipse, however the target environment is set to 1.6 not 1.5.
When setting it to 1.5 Eclipse fails with a large list of problems.

I don't have a 1.5 jdk installed on my machine.
I'm currently using 

>java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

Is this a known problem?
Or should I dredge up a real 1.5 jdk from somewhere?
> Add new ToStyle to support MultiLine with Indent
> ------------------------------------------------
>                 Key: LANG-378
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.builder.*
>    Affects Versions: 2.3
>            Reporter: Barrie Treloar
>            Priority: Minor
>             Fix For: 3.x
>         Attachments: LANG-378-branch-3.0-r1169521.patch,
> Multiline support  places everything on a new line with no indentation to help in readability.
> Attached is a patch (with tests) to support Multiline behaviour with indentation.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message