Fork me on GitHub
#clojure-dev
<
2018-03-02
>
rgorrepati00:03:51

(type (int 10)) returns java.lang.Integer. How do i create a primitive int in clojure?

rgorrepati00:03:26

sorry.. i guess i am in the wrong room..

seancorfield09:03:06

core.cache 0.7.0 is on Maven Central, core.memoize 0.7.0 is in the pipeline, formal announcements will follow on the mailing list etc

seancorfield17:03:48

Realized this morning that 0.7.0 has a buggy version of seed for TTL caches. Will get 0.7.1 of both libs out today to fix that.

schmee22:03:51

has anyone here tried to build the Clojure compiler with Java 10? I’m getting this error:

[java] ERROR in (test-proxy-non-serializable) (ObjectStreamClass.java:689)
     [java] That proxy classes refuse serialization and deserialization
     [java] expected: (thrown? java.io.NotSerializableException (-> serialized-proxy (.getBytes "ISO-8859-1") java.io.ByteArrayInputStream. java.io.ObjectInputStream. .readObject))
     [java]   actual: java.io.InvalidClassException: javax.swing.event.EventListenerList; local class incompatible: stream classdesc serialVersionUID = -5677132037850737084, local class serialVersionUID = -7977902244297240866
     [java]  at java.io.ObjectStreamClass.initNonProxy (ObjectStreamClass.java:689)
     [java]     java.io.ObjectInputStream.readNonProxyDesc (ObjectInputStream.java:1894)
     [java]     java.io.ObjectInputStream.readClassDesc (ObjectInputStream.java:1763)
     [java]     java.io.ObjectInputStream.readOrdinaryObject (ObjectInputStream.java:2051)

schmee22:03:52

is there any idea to submit java 10 related jira issues, since it’s still early access?

alexmiller22:03:43

it’s always ok to submit issues :)

alexmiller22:03:59

this is a relatively new test for the “gadget” someone discovered as a serializability security hole

alexmiller22:03:50

I wonder if he added a serialized object which is now invalid due to a serialVersionUID change

alexmiller22:03:14

what I’m badly trying to suggest is that the test is buggy/fragile here

alexmiller22:03:03

oh yeah, he encoded it into the test

alexmiller22:03:21

so yeah, bad test, please file

schmee22:03:44

righto 👍

schmee22:03:30

btw, can I check somehow if I’ve filed the CLA?

seancorfield22:03:05

(links through to the complete list of known CLA signers)

schmee22:03:01

thank you 🙂

alexmiller22:03:22

that list is updated in batch every 1-2 weeks so it lags

alexmiller22:03:33

but I can look up latest if needed