You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by William Tam <em...@gmail.com> on 2007/10/09 17:51:01 UTC

Re: svn commit: r583092 - in /activemq/camel/trunk: camel-core/src/main/java/org/apache/camel/impl/ camel-core/src/main/java/org/apache/camel/util/ camel-core/src/test/java/org/apache/camel/util/ components/camel-cxf/ components/camel-cxf/src/main/ja

> +package org.apache.camel.util;
> +
> +import java.nio.ByteBuffer;
> +import java.nio.CharBuffer;
> +import java.nio.charset.CharacterCodingException;
> +import java.util.BitSet;
> +
> +import sun.nio.cs.ThreadLocalCoders;
> +import sun.text.Normalizer;
> +
> +public class UnsafeUriCharactersEncoder {

I notice that UnsafeUriCharactersEncoder.java imports sun packages
outside the standard JDK.  Is it why the name "Unsafe"?  :-)

Re: svn commit: r583092 - in /activemq/camel/trunk: camel-core/src/main/java/org/apache/camel/impl/ camel-core/src/main/java/org/apache/camel/util/ camel-core/src/test/java/org/apache/camel/util/ components/camel-cxf/ components/camel-cxf/src/main/ja

Posted by Willem Jiang <wi...@gmail.com>.
This Endcoder should not use the sun's internal class,
I will do a quick fix for it .

Willem.

William Tam wrote:
> nevermind. just saw the question was raised.
>
> On 10/9/07, William Tam <em...@gmail.com> wrote:
>   
>>> +package org.apache.camel.util;
>>> +
>>> +import java.nio.ByteBuffer;
>>> +import java.nio.CharBuffer;
>>> +import java.nio.charset.CharacterCodingException;
>>> +import java.util.BitSet;
>>> +
>>> +import sun.nio.cs.ThreadLocalCoders;
>>> +import sun.text.Normalizer;
>>> +
>>> +public class UnsafeUriCharactersEncoder {
>>>       
>> I notice that UnsafeUriCharactersEncoder.java imports sun packages
>> outside the standard JDK.  Is it why the name "Unsafe"?  :-)
>>
>>     
>
>   


Re: svn commit: r583092 - in /activemq/camel/trunk: camel-core/src/main/java/org/apache/camel/impl/ camel-core/src/main/java/org/apache/camel/util/ camel-core/src/test/java/org/apache/camel/util/ components/camel-cxf/ components/camel-cxf/src/main/ja

Posted by William Tam <em...@gmail.com>.
nevermind. just saw the question was raised.

On 10/9/07, William Tam <em...@gmail.com> wrote:
> > +package org.apache.camel.util;
> > +
> > +import java.nio.ByteBuffer;
> > +import java.nio.CharBuffer;
> > +import java.nio.charset.CharacterCodingException;
> > +import java.util.BitSet;
> > +
> > +import sun.nio.cs.ThreadLocalCoders;
> > +import sun.text.Normalizer;
> > +
> > +public class UnsafeUriCharactersEncoder {
>
> I notice that UnsafeUriCharactersEncoder.java imports sun packages
> outside the standard JDK.  Is it why the name "Unsafe"?  :-)
>