[mule-scm] [mule][25325] branches/mule-3.x/transports/jdbc/src/main/java/org/mule/ transport/jdbc/JdbcConnector.java: MULE-6700: mule-common dependency should be on a fixed version

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[mule-scm] [mule][25325] branches/mule-3.x/transports/jdbc/src/main/java/org/mule/ transport/jdbc/JdbcConnector.java: MULE-6700: mule-common dependency should be on a fixed version

cmordue
[mule][25325] branches/mule-3.x/transports/jdbc/src/main/java/org/mule/transport/jdbc/JdbcConnector.java: MULE-6700: mule-common dependency should be on a fixed version
Revision
25325
Author
cmordue
Date
2013-03-01 17:14:28 -0600 (Fri, 01 Mar 2013)

Log Message

MULE-6700: mule-common dependency should be on a fixed version
_ fix broken build from class move in upgrade.

Modified Paths

Diff

Modified: branches/mule-3.x/transports/jdbc/src/main/java/org/mule/transport/jdbc/JdbcConnector.java (25324 => 25325)


--- branches/mule-3.x/transports/jdbc/src/main/java/org/mule/transport/jdbc/JdbcConnector.java	2013-03-01 22:05:05 UTC (rev 25324)
+++ branches/mule-3.x/transports/jdbc/src/main/java/org/mule/transport/jdbc/JdbcConnector.java	2013-03-01 23:14:28 UTC (rev 25325)
@@ -25,6 +25,7 @@
 import org.mule.api.transaction.TransactionException;
 import org.mule.api.transport.MessageReceiver;
 import org.mule.common.DefaultTestResult;
+import org.mule.common.FailureType;
 import org.mule.common.TestResult;
 import org.mule.common.Testable;
 import org.mule.config.ExceptionHelper;
@@ -604,15 +605,15 @@
         catch (Exception e)
         {
         	// this surely doesn't cover all cases for all kinds of jdbc drivers but it is better than nothing
-        	TestResult.FailureType failureType = TestResult.FailureType.UNSPECIFIED;
+        	FailureType failureType = FailureType.UNSPECIFIED;
         	String msg = e.getMessage();
         	if (msg != null && msg.contains("Communications link failure"))
         	{
-        		failureType = TestResult.FailureType.CONNECTION_FAILURE;
+        		failureType = FailureType.CONNECTION_FAILURE;
         	}
         	else if (msg != null && msg.contains("Access denied for user"))
         	{
-        		failureType = TestResult.FailureType.INVALID_CREDENTIALS;
+        		failureType = FailureType.INVALID_CREDENTIALS;
         	}
             return new DefaultTestResult(TestResult.Status.FAILURE, e.getMessage(), failureType, e);
         }

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email