[ 
https://issues.apache.org/jira/browse/CAMEL-4955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211528#comment-13211528
 ] 

Christian Müller commented on CAMEL-4955:
-----------------------------------------

>From Java 6 to 7, Oracle did the following change which cause the unit test 
>org.apache.camel.builder.SimpleBuilderTest.testResultType to fail: 
Java 6:
sun.beans.editors.IntEditor calls Integer.valueOf("09") which succeed

Java 7:
sun.beans.editors.IntegerEditor calls Integer.decode("09") which fails with a 
NumberFormatException

Should we remove this unit tests because "09" is indeed not a valid int value 
or should we "work around" this issue? What do you think?

With Java 7, we also support the following conversions (but not with Java 6):
{code:java}
assertEquals(11540255, SimpleBuilder.simple("#B0171F", 
int.class).evaluate(exchange, Object.class)); // HexDigit
assertEquals(11540255, SimpleBuilder.simple("0XB0171F", 
int.class).evaluate(exchange, Object.class)); // HexDigit
assertEquals(11540255, SimpleBuilder.simple("0xB0171F", 
int.class).evaluate(exchange, Object.class)); // HexDigit
assertEquals(74, SimpleBuilder.simple("0112", int.class).evaluate(exchange, 
Object.class)); // OctalDigit
{code}
                
> Camel should run in a Java 7 environment
> ----------------------------------------
>
>                 Key: CAMEL-4955
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4955
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.9.0
>            Reporter: Christian Müller
>            Priority: Critical
>             Fix For: 2.10.0
>
>
> End of life for Java 6 is July 2012.
> If we release Camel 2.10.0 3 month after 2.9.0, it's round about March/April. 
> The next Camel release after 2.10.0 (may be 3.0.0) will be not available 
> before July 2012.
> Because of this, I think Camel 2.10.0 must be able to run in an Java 7 
> environment to give our users the possibility to migrate to Java 7 before it 
> reaches EOL.
> http://www.oracle.com/technetwork/java/eol-135779.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to