summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-02-02The DynamicClassLoader should not use the default ProtectionDomain.1.2.xDavid Barksdale
I've decided that using the ProtectionDomain of the ClassLoader which loaded the Compiler class is probably a good bet. This is useful for signed Java applets because the default ProtectionDomain will not have all the privlages of the applet.
2011-02-02Created gen-class option :set-context-classloader.David Barksdale
When the class is loaded it will set the current thread's context ClassLoader to the ClassLoader which is currently loading the class. This turns out to be useful for classes which extend java.applet.Applet because the current thread's context ClassLoader is not the JNLPClassLoader when loaded in a browser.
2010-08-19prepare for 1.2.01.2.0Stuart Halloway
2010-08-12prepare for 1.2 RC31.2.0-RC3Stuart Halloway
2010-08-12Fixing underive issues, adding testsRobert Lachlan
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-12Emit finally exception table entry for each try/catch clause. Refs #422Chouser
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-12preserve opts when creating socket reader, writerStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-12Fix and tests for issue #404Rasmus Svensson
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-12make sure future clears closed-overs, fixes #423Rich Hickey
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-08-06preparing for 1.2RC21.2.0-RC2Stuart Halloway
2010-08-04fix record equality with other maps, = includes type, .equals doesn't. see #418Rich Hickey
2010-07-30prep for 1.2 RC11.2.0-RC1Stuart Halloway
2010-07-30#407 use munge as cheap validity test for Java method namesStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27♯413 parse-args defaults in-enc and out-enc to UTF-8, as required by shBen Smith-Mannschott
Previously parse-args was defaulting in-enc and out-enc to the platform default charset. This contradicted the intent of sh, which is to default to UTF-8 on all platforms. This appears not to have been noticed because the unit tests were still testing for the previous behavior of defaulting to platform encoding. (As it turns out the old behavior of using Charset/defaultCharset would have been wrong on Mac OS X since it claims "Mac Roman" here despite the fact that Mac OS X uses UTF-8 throughout, including in Terminal.app, shell and file system.) Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27fixed extend-protocol docDavid Powell
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27fix degenerate defrecords, #402Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27read stdout and stderr in parallel (using futures)David Powell
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-27Fixes missing this arg on the reify and defprotocol docstrings #340Fogus
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-16use soft refs for keyword intern tableRich Hickey
2010-07-16factor out cache clearing to Util helperRich Hickey
2010-07-16switch to soft refs in DynamicClassLoaderRich Hickey
2010-07-13prepare for 1.2.0 beta11.2.0-beta1Stuart Halloway
2010-07-10fix reduce metadataStuart Halloway
2010-07-09Fix rename-keys to work with defrecordsAllen Rohner
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09#392 de-uglify option names for shStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09#392 fix reflection warnings and tests + minor cleanupStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09fixes to #392:Stuart Halloway
- correct order for branches for in - :out and :outenc are separate things - stderr always gets platform encoding Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-07-09read stdout and stderr simultanously from separate threads to prevent stderr ↵David Powell
filling the buffer and hanging the process removed stray println use clojure.java.io to copy streams, avoiding byte-at-a-time copying added :inenc option, specifying the input character set renamed :out input option to :outenc changed default encoding to 'platform default encoding'. This matches how we handle *out*. It is much more likely that command-line tools used by sh use platform default encoding. Windows CRT barely supports UTF-8 for example. write to stdin from a separate thread to prevent stdout blocking before we write anything Added support for passing a byte array to :in Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30temporary workaround for #388Stuart Halloway
- note need for full package name (in some places, didn't track down) - note need for redundant hinting (interface hinting flows sometimes?) Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30#377 test now reports file/line for failures in repl or Ant buildStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30#391 ok for namespaces to replace their own varsStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-30clean out dead entries in dynamic class cacheRich Hickey
2010-06-23automatically use pp and pprint at the default replStuart Halloway
2010-06-23Convert arg to a string before calling write (and document options arg)Tom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-23Support logical-block macro working correctly in external namespaces.Tom Faulhaber
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-23disable direct binding (and internal reduce with it, for now)Rich Hickey
2010-06-07Remove potential conflicts between field names and method argument names in ↵Konrad Hinsen
defrecord Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07tidy up and test #257, remove spurious .rej fileStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07added fnil to supply default values #257Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07make get-in faster #256Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07get-in support for default #256Timothy Pratley
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-07fix pop! when the tree depth decreasesChristophe Grand
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-06prevent dynamic classes from being flushed before useRich Hickey
2010-06-03Improve merge-with to work with map-like types that don't implement ↵Konrad Hinsen
clojure.lang.IFn for lookup Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 request from Stuart Sierra: split-lines, blank?, escapeStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03minor fixes to #359:Stuart Halloway
- add clojure.string to build, - make replace,replace-first use CharSequence in same way Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03code review of #359: pass in CharSequence, but return StringStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03#359 driven to abstraction: CharSequence, not stringStuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03abstraction fix to split: preserve vector nature of host return value #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
2010-06-03metadata review #359Stuart Halloway
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>