You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by bp...@apache.org on 2016/07/30 01:54:07 UTC

svn commit: r1754588 - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master: functions.out schemas.out valuesclause.out

Author: bpendleton
Date: Sat Jul 30 01:54:07 2016
New Revision: 1754588

URL: http://svn.apache.org/viewvc?rev=1754588&view=rev
Log:
DERBY-5585: Improve error message when user function can't find class.

This patch was contributed by Danoja Dias (danojadias at gmail dot com)

Several test output files are adjusted to reflect the new error message text.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/functions.out
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schemas.out
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/valuesclause.out

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/functions.out
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/functions.out?rev=1754588&r1=1754587&r2=1754588&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/functions.out (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/functions.out Sat Jul 30 01:54:07 2016
@@ -430,7 +430,7 @@ VALUES SIGNATURE_BUG_DERBY_258_D(2356, 1
 934                 
 ij> -- no method to resolve to (with specified signature)
 VALUES SIGNATURE_BUG_DERBY_258_E();
-ERROR 42X50: No method was found that matched the method call java.lang.Integer.toXXString(), tried all combinations of object and primitive types and any possible type conversion for any  parameters the method call may have. The method might exist but it is not public and/or static, or the parameter types are not method invocation convertible.
+ERROR 42X50: No method was found that matched the method call java.lang.Integer.toXXString(), tried all combinations of object and primitive types and any possible type conversion for any  parameters the method call may have. The method might exist but it is not public and/or static, or the parameter types are not method invocation convertible or the derby.database.classpath property is missing or incorrectly defined.
 ij> DROP FUNCTION SIGNATURE_BUG_DERBY_258_D;
 0 rows inserted/updated/deleted
 ij> DROP FUNCTION SIGNATURE_BUG_DERBY_258_E;

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schemas.out
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schemas.out?rev=1754588&r1=1754587&r2=1754588&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schemas.out (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/schemas.out Sat Jul 30 01:54:07 2016
@@ -955,7 +955,7 @@ ij> prepare ISC_PROCEDURE as 'create pro
 ij> execute ISC_PROCEDURE;
 0 rows inserted/updated/deleted
 ij> CALL ISC.DUMMY();
-ERROR 42X51: The class 'asdf' does not exist or is inaccessible. This can happen if the class is not public.
+ERROR 42X51: The class 'asdf' does not exist or is inaccessible. This can happen if the class is not public or the derby.database.classpath property is missing or incorrectly defined.
 ERROR XJ001: Java exception: 'asdf: java.lang.ClassNotFoundException'.
 ij> drop procedure ISC.DUMMY;
 0 rows inserted/updated/deleted
@@ -999,4 +999,4 @@ ij> set schema app;
 0 rows inserted/updated/deleted
 ij> drop schema test restrict;
 0 rows inserted/updated/deleted
-ij> 
\ No newline at end of file
+ij> 

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/valuesclause.out
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/valuesclause.out?rev=1754588&r1=1754587&r2=1754588&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/valuesclause.out (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/valuesclause.out Sat Jul 30 01:54:07 2016
@@ -560,7 +560,7 @@ select '_foobar' like '__foobar' escape
 -----
 true 
 ij> prepare ll4 as 'values org.apache.derbyTesting.functionTests.tests.lang.CharUTF8::getMaxDefinedCharAsString() like ?';
-ERROR 42X51: The class 'org.apache.derbyTesting.functionTests.tests.lang.CharUTF8' does not exist or is inaccessible. This can happen if the class is not public.
+ERROR 42X51: The class 'org.apache.derbyTesting.functionTests.tests.lang.CharUTF8' does not exist or is inaccessible. This can happen if the class is not public or the derby.database.classpath property is missing or incorrectly defined.
 ERROR XJ001: Java exception: 'org.apache.derbyTesting.functionTests.tests.lang.CharUTF8: java.lang.ClassNotFoundException'.
 ij> -- boolean expression INSTANCEOF disallowed in values and select clause
 values 1 instanceof int;
@@ -677,4 +677,4 @@ select * from t3 group by i having (valu
 ERROR 42X07: Null is only allowed in a VALUES clause within an INSERT statement.
 ij> drop table t3;
 0 rows inserted/updated/deleted
-ij> 
\ No newline at end of file
+ij>