Move compilation of Clojure test source to the right phase.

It was getting compiled before the Java test code was getting compiled.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Compile Java test source in the ant build.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Move ReflectorTryCatchFixture to the test directory.

It was getting packaged up in the jar.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Add test for extra unwrapping.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Don't double unwrap when calling an instance method.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
[maven-release-plugin] prepare release clojure-1.4.0-beta4
[maven-release-plugin] prepare for next development iteration
added compiler-options map, moved elide-meta to use that, added disable-locals-clearing
data_readers.clj should contain a legal Clojure map, not an ad hoc data structure
[maven-release-plugin] prepare release clojure-1.4.0-beta5
[maven-release-plugin] prepare for next development iteration
Fix CLJ-931: Syntactically broken clojure.test/are tests succeed.

Fixed a test case in test/clojure/test_clojure/java_interop.clj only
because of the bug in clojure.test/are CLJ-931 is about.

No test case added that causes clojure.test/are to fail, because could
not determine how to write one that didn't also cause the Clojure
build tests to fail.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Add new reader tests that fail without fix for CLJ-924

Also more tests related to reading character and string literals with
octal or Unicode hex escape characters.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
fix reporting of invalid character in unicode character/string literals

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Fix for CLJ-886, along with test illustrating the problem

Original reported problem was with do-copy method on arg types
InputStream and Writer.  Changes to function data-fixture and test
test-copy-encodings in clojure.java.io's test suite now cause the
problem to occur, in the absence of this fix to do-copy.

While fixing that one and adding tests, it was also discovered that
do-copy with arg types Reader and OutputStream had a bug if the
encoding was UTF-16, because Java's .getBytes returns a byte-order
mark (Unicode code point U+FEFF) at the beginning of the byte array
every time it is called.  Thus if the file being copied was larger
than one buffer's worth of data, a new byte-order mark was written to
the copy in between each buffer's worth.  With the correction, only a
single byte-order mark is written at the beginning.

Also enhanced the tests test-spit-and-slurp and test-input-stream to
use non-ASCII characters.  No bugs were found as a result of these
test enhancements.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
CLJ-852: add regression test

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
CLJ-852: add special cases for "int" ... "boolean" to tagToClass()

This causes the test to pass.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Check interface methods for -

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
await-for return value doc fix

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Docstrings for generated factory functions.

Also add to the docstrings of deftype and defrecord to indicate that the
factories will be generated.

Fixed test that expected public vars to have :added metadata - generated
factory functions ->Vec, ->ArrayChunk, etc. do not have :added.

Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>