On Tue, Jun 15, 2010 at 9:54 AM, Charles Moulliard <[email protected]> wrote:
> Hi,
>
> I get a CamelRuntimeException when I try to instantiate an inner class
> using this method of Camel :
>
> Object obj = ObjectHelper.newInstance(cl);
>
> Caused by: java.lang.InstantiationException:
> org.apache.camel.dataformat.bindy.csv.BindyDoubleQuotesCsvUnmarshallTest$Order
>        at java.lang.Class.newInstance0(Class.java:340)
>        at java.lang.Class.newInstance(Class.java:308)
>        at 
> org.apache.camel.util.ObjectHelper.newInstance(ObjectHelper.java:1045)
>        ... 53 more
>
> Questrion : Can we use it to instantiate inner class ?
>

The inner classes should be declared as public static


> KR,
>
> Charles Moulliard
>
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel/ServiceMix Committer
>
> *******************************************************************
> - Blog : http://cmoulliard.blogspot.com
> - Twitter : http://twitter.com/cmoulliard
> - Linkedlin : http://www.linkedin.com/in/charlesmoulliard
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to