You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by Robbie Gemmell <ro...@gmail.com> on 2013/07/23 18:10:09 UTC

Re: svn commit: r1506095 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java

This also seems like a change which should have a JIRA reference,
particularly if there was a patch.

Robbie

On 23 July 2013 16:03, <ra...@apache.org> wrote:

> Author: rajith
> Date: Tue Jul 23 15:03:38 2013
> New Revision: 1506095
>
> URL: http://svn.apache.org/r1506095
> Log:
> NO_JIRA Changed the exception thrown for an invalid destination from a
> regular JMSException to an
> InvalidDestinationException. This is patch from Pavel Morevec.
>
> Modified:
>
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
>
> Modified:
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> URL:
> http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java?rev=1506095&r1=1506094&r2=1506095&view=diff
>
> ==============================================================================
> ---
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> (original)
> +++
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> Tue Jul 23 15:03:38 2013
> @@ -440,7 +440,7 @@ public abstract class BasicMessageProduc
>      {
>          if (!(destination instanceof AMQDestination))
>          {
> -            throw new JMSException("Unsupported destination class: "
> +            throw new InvalidDestinationException("Unsupported
> destination class: "
>                                     + ((destination != null) ?
> destination.getClass() : null));
>          }
>
> @@ -453,7 +453,7 @@ public abstract class BasicMessageProduc
>              }
>              catch(Exception e)
>              {
> -                JMSException ex = new JMSException("Error validating
> destination");
> +                JMSException ex = new InvalidDestinationException("Error
> validating destination");
>                  ex.initCause(e);
>                  ex.setLinkedException(e);
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
> For additional commands, e-mail: commits-help@qpid.apache.org
>
>

Re: svn commit: r1506095 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java

Posted by Justin Ross <ju...@gmail.com>.
Sorry to pile on, but I second what Robbie said.  Without a jira here,
we've missed some useful content for the release.

Justin

On Tue, Jul 23, 2013 at 12:10 PM, Robbie Gemmell
<ro...@gmail.com> wrote:
> This also seems like a change which should have a JIRA reference,
> particularly if there was a patch.
>
> Robbie
>
> On 23 July 2013 16:03, <ra...@apache.org> wrote:
>
>> Author: rajith
>> Date: Tue Jul 23 15:03:38 2013
>> New Revision: 1506095
>>
>> URL: http://svn.apache.org/r1506095
>> Log:
>> NO_JIRA Changed the exception thrown for an invalid destination from a
>> regular JMSException to an
>> InvalidDestinationException. This is patch from Pavel Morevec.
>>
>> Modified:
>>
>> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
>>
>> Modified:
>> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
>> URL:
>> http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java?rev=1506095&r1=1506094&r2=1506095&view=diff
>>
>> ==============================================================================
>> ---
>> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
>> (original)
>> +++
>> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
>> Tue Jul 23 15:03:38 2013
>> @@ -440,7 +440,7 @@ public abstract class BasicMessageProduc
>>      {
>>          if (!(destination instanceof AMQDestination))
>>          {
>> -            throw new JMSException("Unsupported destination class: "
>> +            throw new InvalidDestinationException("Unsupported
>> destination class: "
>>                                     + ((destination != null) ?
>> destination.getClass() : null));
>>          }
>>
>> @@ -453,7 +453,7 @@ public abstract class BasicMessageProduc
>>              }
>>              catch(Exception e)
>>              {
>> -                JMSException ex = new JMSException("Error validating
>> destination");
>> +                JMSException ex = new InvalidDestinationException("Error
>> validating destination");
>>                  ex.initCause(e);
>>                  ex.setLinkedException(e);
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
>> For additional commands, e-mail: commits-help@qpid.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Re: svn commit: r1506095 - /qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java

Posted by Rajith Attapattu <ra...@gmail.com>.
Sorry, there wasn't JIRA for this.
I should have created one.
The patch I mentioned was attached to an internal Bugzilla .

Rajith


On Tue, Jul 23, 2013 at 12:10 PM, Robbie Gemmell
<ro...@gmail.com>wrote:

> This also seems like a change which should have a JIRA reference,
> particularly if there was a patch.
>
> Robbie
>
> On 23 July 2013 16:03, <ra...@apache.org> wrote:
>
> > Author: rajith
> > Date: Tue Jul 23 15:03:38 2013
> > New Revision: 1506095
> >
> > URL: http://svn.apache.org/r1506095
> > Log:
> > NO_JIRA Changed the exception thrown for an invalid destination from a
> > regular JMSException to an
> > InvalidDestinationException. This is patch from Pavel Morevec.
> >
> > Modified:
> >
> >
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> >
> > Modified:
> >
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> > URL:
> >
> http://svn.apache.org/viewvc/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java?rev=1506095&r1=1506094&r2=1506095&view=diff
> >
> >
> ==============================================================================
> > ---
> >
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> > (original)
> > +++
> >
> qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/client/BasicMessageProducer.java
> > Tue Jul 23 15:03:38 2013
> > @@ -440,7 +440,7 @@ public abstract class BasicMessageProduc
> >      {
> >          if (!(destination instanceof AMQDestination))
> >          {
> > -            throw new JMSException("Unsupported destination class: "
> > +            throw new InvalidDestinationException("Unsupported
> > destination class: "
> >                                     + ((destination != null) ?
> > destination.getClass() : null));
> >          }
> >
> > @@ -453,7 +453,7 @@ public abstract class BasicMessageProduc
> >              }
> >              catch(Exception e)
> >              {
> > -                JMSException ex = new JMSException("Error validating
> > destination");
> > +                JMSException ex = new InvalidDestinationException("Error
> > validating destination");
> >                  ex.initCause(e);
> >                  ex.setLinkedException(e);
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: commits-help@qpid.apache.org
> >
> >
>