You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (Jira)" <ji...@apache.org> on 2020/01/19 18:10:00 UTC

[jira] [Closed] (JENA-1819) Updating from 3.12 to 3.13 breaks

     [ https://issues.apache.org/jira/browse/JENA-1819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne closed JENA-1819.
-------------------------------

> Updating from 3.12 to 3.13 breaks
> ---------------------------------
>
>                 Key: JENA-1819
>                 URL: https://issues.apache.org/jira/browse/JENA-1819
>             Project: Apache Jena
>          Issue Type: Bug
>            Reporter: xia0c
>            Priority: Major
>
> When I try to upgrade jena-arq from 3.12 to 3.13. The following code breaks.
> {code:java}
> public class TestJena {
> 	
> 	private static FastDateFormat timestamp = FastDateFormat.getInstance("HH:mm:ss.SSS") ;
> 	
> 	private void printQuery(Query query, QuerySolution initialBinding) {
>         String time = DateTimeUtils.nowAsString(timestamp); 
>         System.err.print("~~ ");
>         System.err.print(time);
>         System.err.println(" ~~");
>         System.err.println(initialBinding);
>         System.err.print(query);
> 	}
> }
> {code}
> The code should pass, but it throws an error:
> {code:java}
> TestJena.java:[13,36] no suitable method found for nowAsString(org.apache.commons.lang3.time.FastDateFormat)
> [ERROR] method org.apache.jena.atlas.lib.DateTimeUtils.nowAsString(java.lang.String) is not applicable
> [ERROR] (argument mismatch; org.apache.commons.lang3.time.FastDateFormat cannot be converted to java.lang.String)
> [ERROR] method org.apache.jena.atlas.lib.DateTimeUtils.nowAsString(java.time.format.DateTimeFormatter) is not applicable
> [ERROR] (argument mismatch; org.apache.commons.lang3.time.FastDateFormat cannot be converted to java.time.format.DateTimeFormatter)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)