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

Scott O'Bryan commented on TRINIDAD-2497:
-----------------------------------------

I tried building these manually and then building against jdk8 and it didn't 
work.  It appears clirr-runner is unable to work properly.  Even with the 
change it doesn't break JDK7.  I verified everything built with jdk7.

> Code changes for JDK8 Compatibility issue
> -----------------------------------------
>
>                 Key: TRINIDAD-2497
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2497
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 2.1.0-core
>            Reporter: Avin Goyal
>         Attachments: JDK8BuildIssue.patch
>
>
> While building in jdk8, the plugin maven-i18n-plugin in trinidad plugin 
> project, had the following problems:
> 1. The methods are no longer static in sun.util.resources.LocaleData.java (we 
> are using to get the resourceBundles). We are using reflection to invoke the 
> methods. Earlier we were passing null. But now, since the methods are no 
> longer static, we have to pass the instance of LocaleData to invoke the 
> methods. 
> 2. There is a change in the "DateTimePatterns" value in JAVA8. Till JDK7, it 
> also had Time and Date patterns.
> In JDK8, it contains only one string: "{1} {0}".
> In order to get the old value back, we have to combine the values from these 
> three keys: "TimePatterns", "DatePatterns", "DateTimePatterns"
> Also, modifying pom.xml of maven-i18n-plugin to change maven-compiler-plugin 
> source and target version number to 1.6 from 1.4



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to