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

2020-01-17 Thread xia0c (Jira)


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

xia0c commented on JENA-1819:
-

Hi [~andy], thanks for your help. It could solve my issue. Would it is better 
to add a breaking announcement in the release note? Then all other developers 
who use Jena can know it.

> 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)


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

2020-01-17 Thread xia0c (Jira)
xia0c created JENA-1819:
---

 Summary: 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


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)