Kostas Kougios

Results 62 comments of Kostas Kougios

Hi, I am having a data compatibility issue between spark 3.1.1 and avro4s 4.0.9, maybe related to the above. java.sql.Timestamp written with spark is not read correctly by avro4s. Looking...

This doesn't seem to be a cloner specific issue. Are you cloning a hashmap that is concurrently accessed by other threads? Also can you please provide more information on what...

@Littlenotch-Jacuzzi , I am getting ``` java.lang.SecurityException: Unsafe at jdk.unsupported/sun.misc.Unsafe.getUnsafe(Unsafe.java:99) at com.rits.cloning.Cloner.newInstance(Cloner.java:311) at com.rits.cloning.Cloner$CloneObjectCloner.deepClone(Cloner.java:618) at com.rits.cloning.Cloner.cloneInternal(Cloner.java:447) at com.rits.cloning.Cloner.deepClone(Cloner.java:338) at com.rits.tests.cloning.TestCloner.testNullInsteadOfCloneAnnotatedFields(TestCloner.java:555) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:567) at...

No. What would be a solution like?

see https://github.com/kostaskougios/cloning/issues/45 "It seems this is due to the lambda class names contain a /. i.e. com.rits.tests.cloning.Jdk8Class2$$Lambda$1/836514715 Then the classloader replaces / with a dot and tries to load com.rits.tests.cloning.Jdk8Class2$$Lambda$1.836514715...

Hi, do you get an exception or the cloned object is not correct? On 09/11/15 20:14, Sid wrote: > I'm trying to clone a class I have that uses the...

It seems this is due to the lambda class names contain a /. i.e. com.rits.tests.cloning.Jdk8Class2$$Lambda$1/836514715 Then the classloader replaces / with a dot and tries to load com.rits.tests.cloning.Jdk8Class2$$Lambda$1.836514715 which is...

I just published 1.9.6 with objenesis 2.6. But Mike above says it wouldn't fix the problem.

I don't think it is an objenesis problem, rather a jdk issue regarding lambdas: It seems this is due to the lambda class names contain a /. i.e. com.rits.tests.cloning.Jdk8Class2$$Lambda$1/836514715 Then...

@ZhenXiongQian your code doesn't clone any lambda. I tried v3.2 of objenesis with this test: ``` public void testLambda() { Function f = ZonedDateTime::getNano; cloner.deepClone(f); } ``` But still fails...