add jdk-test target, and fix failures

The intent of this target is to run our test suite against the installed jre.
This should help prevent our VM from diverging in implementation from the jdk.

The remainder of this commit fixes the problems that this exposes.
Do not test java.util.TreeMap's serialization in the Serialize test

In the Android class path, TreeMap is implemented differently and as a
consequence its serialization is incompatible with OpenJDK's. So let's
test a private static class' serialization instead, to make sure that
the wire protocol defined by the Java Language Specification is
implemented.

This addresses issue #123 reported by Joel Dice.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #124 from dscho/serialize-test

Do not test java.util.TreeMap's serialization in the Serialize test
fix various Android test suite regressions and add more reflection tests

Most of these regressions were simply due to testing a lot more stuff,
esp. annotations and reflection, revealing holes in the Android
compatibility code.  There are still some holes, but at least the
suite is passing (except for a fragile test in Serialize.java which I
will open an issue for).

Sorry this is such a big commit; there was more to address than I
initially expected.
fix jdk-test failures
Merge pull request #122 from dicej/master

fix various Android test suite regressions and add more reflection tests
Merge pull request #121 from joshuawarner32/master

add jdk-test target, and fix failures
use portable conditional expression in test.sh

[[ expression ]] is bash-specific, so we use [ expression ] instead.
Merge pull request #125 from dicej/master

use portable conditional expression in test.sh
Use 0777/0666 permissions when creating dirs/files.

Just like openjdk, we now depend on the processes umask (0022, for
instance) to mask that into 0755 or 0666, for instance.

This fixes #57.
Merge pull request #126 from joshuawarner32/master

Use 0777/0666 permissions when creating dirs/files.
fix FileInputStream for newer openjdk7 versions
fix openjdk-src build failures on osx 10.9
prevent openjdk-src build from trying to load the installed 'JavaRuntimeSupport' (fixes #128)
Merge pull request #130 from joshuawarner32/openjdk-files-compat

fix FileInputStream for newer openjdk7 versions
Merge pull request #129 from joshuawarner32/openjdk-osx10.9-build-fix

Openjdk osx10.9 build fix
fix java 1.6 compatibility, and make sure it's maintained in the future
Fix extra java 1.6 failures... that only happen with -source 1.6.  Go figure.
Merge pull request #132 from joshuawarner32/master

fix java 1.6 compatibility, and make sure it's maintained in the future
consolidate many implicit list types into one