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

ASF GitHub Bot commented on JENA-1372:
--------------------------------------

Github user ajs6f commented on a diff in the pull request:

    https://github.com/apache/jena/pull/273#discussion_r133971637
  
    --- Diff: 
jena-base/src/main/java/org/apache/jena/atlas/lib/cache/Cache0.java ---
    @@ -39,7 +39,13 @@ public V getIfPresent(K key) {
     
         @Override
         public V getOrFill(K key, Callable<V> callable) {
    -        return null ;
    +        try {
    +            return callable.call() ;
    +        }
    +        catch (Exception e) {
    +            e.printStackTrace();
    --- End diff --
    
    `printStackTrace()`? Isn't it better to use a logger?


> New functions in F&O 3.1
> ------------------------
>
>                 Key: JENA-1372
>                 URL: https://issues.apache.org/jira/browse/JENA-1372
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>    Affects Versions: Jena 3.4.0
>            Reporter: Andy Seaborne
>            Priority: Minor
>
> F&O 3.1 adds some new functions : see 
> https://www.w3.org/TR/xpath-functions-3/#substantive-changes. 
> The ones of note are:
> * [fn:apply|https://www.w3.org/TR/xpath-functions-3/#func-apply] (dynamically 
> applies a function to arguments supplied as an array) which is close to the 
> extension {{CALL}}, so the code there could be extracted and morphed to be 
> {{fn:apply}}.
> * 
> [fn:collation-key|https://www.w3.org/TR/xpath-functions-3/#func-collation-key]
>  (generates a key that can be used for collation-based matching). It is quite 
> similar to role played by {{NodeValueSortKey}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to