jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject jena git commit: fix for JENA-1348
Date Sat, 27 May 2017 07:32:36 GMT
Repository: jena
Updated Branches:
  refs/heads/master 2fc04cf8f -> 9b92dd99e


fix for JENA-1348

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/9b92dd99
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/9b92dd99
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/9b92dd99

Branch: refs/heads/master
Commit: 9b92dd99e94f4ad1655483f43948ebf9590a726e
Parents: 2fc04cf
Author: Claude Warren <claude@apache.org>
Authored: Sat May 27 08:32:19 2017 +0100
Committer: Claude Warren <claude@apache.org>
Committed: Sat May 27 08:32:19 2017 +0100

----------------------------------------------------------------------
 .../jena/sparql/expr/E_FunctionDynamic.java      |  2 +-
 .../jena/sparql/expr/TestE_FunctionDynamic.java  | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/9b92dd99/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_FunctionDynamic.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_FunctionDynamic.java b/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_FunctionDynamic.java
index d2d52a6..a69c097 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_FunctionDynamic.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/expr/E_FunctionDynamic.java
@@ -34,7 +34,7 @@ public class E_FunctionDynamic extends E_Call
     private static ExprList concatArgs(Expr expr, ExprList args)
     {
         args = ExprList.copy(args) ;
-        args.getList().add(0, expr) ;
+        args.getListRaw().add(0, expr) ;
         return args ;
     }
     

http://git-wip-us.apache.org/repos/asf/jena/blob/9b92dd99/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestE_FunctionDynamic.java
----------------------------------------------------------------------
diff --git a/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestE_FunctionDynamic.java
b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestE_FunctionDynamic.java
new file mode 100644
index 0000000..5895044
--- /dev/null
+++ b/jena-arq/src/test/java/org/apache/jena/sparql/expr/TestE_FunctionDynamic.java
@@ -0,0 +1,19 @@
+package org.apache.jena.sparql.expr;
+
+import static org.junit.Assert.*;
+import org.junit.Test;
+
+public class TestE_FunctionDynamic {
+	
+	@Test
+	public void testConstructor_ExprList() {
+		Expr e = new E_FunctionDynamic( new ExprList() );
+		assertTrue( e instanceof E_FunctionDynamic );
+	}
+
+	@Test
+	public void testConstructor_ExprAndExprList() {
+		Expr e = new E_FunctionDynamic( Expr.NONE, new ExprList() );
+		assertTrue( e instanceof E_FunctionDynamic );
+	}
+}


Mime
View raw message