Re: Getting Symbol objects instead of java.lang.Class objects when using reflect/reflect

2017-06-26 Thread Manas Marthi
looking for? > > > user=> (resolve 'java.lang.String) > java.lang.String > > user=> (type (resolve 'java.lang.String)) > java.lang.Class > > > On Mon, Jun 26, 2017 at 1:34 PM Manas Marthi > wrote: > >> Hi, >> I have a jar files with m

Getting Symbol objects instead of java.lang.Class objects when using reflect/reflect

2017-06-26 Thread Manas Marthi
Hi, I have a jar files with more than 200 DTO classes. Some have only primitive data type values and some have other beans from the same jar. I am trying to traverse through a class hierarchy to find the field count. If a class has a mix of some primitive types and other java classes, then th

Re: regarding writing unit tests in clojure for existing java code

2017-05-29 Thread manas . marthi
Hi Daniel Thank you! On Monday, May 29, 2017 at 2:40:08 AM UTC+1, Daniel Compton wrote: > > Hi Manas > > I haven't used it, and it's quite old, but this may help for writing JUnit > tests in Clojure: > https://github.com/clojurebook/ClojureProgramming/tree/master/ch09-annotations. > > It sh

regarding writing unit tests in clojure for existing java code

2017-05-26 Thread manas . marthi
Hello All,. We have a large java code base. Junits are not keeping in pace with the code base changes and quite a number are outdated. I was wondering if I can use clojure to write unit tests and run them using Junit Runner so that the unit tests pass inside eclipse as part of compilation o

Re: Property file IO failing Incorrect data type conversion

2017-04-15 Thread manas . marthi
Hi Sean, Thank you very much. I changed read-string to str. And it worked fine now. So is ".toString" working fine. for [[k v] props] [(keyword k) (.toString v)] regards Manas On Saturday, April 15, 2017 at 2:28:16 AM UTC+1, Sean Corfield wrote: > > Trying to convert arbitrary strings to Cl

Property file IO failing Incorrect data type conversion

2017-04-14 Thread manas . marthi
Hi I am trying to compare two eclipse preferences files with a piece of code I picked from internet Some of the values in the file are version numbers and clojure is throwing number format error. How to force clojure read the properties as strings. CompilerException java.lang.NumberForm