purplefox/vert.x — pull request #30 by wolfeidau (2011-10-14 03:59:56+00:00)
Title: Tweak to the ant build.xml to make it clear what java version is required

Hope you don't mind me pushing a few changes to your project while I test drive it.

Tweak to the ant build.xml to make it clear what java version is required to build this project.

This change will result in very clear error when trying to build on 1.6.

compile-core:
[javac] Compiling 94 source files to /Users/markw/Code/Java/vert.x/target/core/classes
[javac] javac: invalid target release: 1.7
[javac] Usage: javac
[javac] use -help for a list of possible options

BUILD FAILED
/Users/markw/Code/Java/vert.x/build.xml:67: Compile failed; see the compiler error output for details.

Total time: 0 seconds

Otherwise I get the following error.

[javac] /Users/markw/Code/Java/vert.x/src/main/java/org/vertx/java/scratch/Pool.java:25: illegal start of type
[javac] private Queue connections = new ConcurrentLinkedQueue<>();
[javac] ^
[javac] /Users/markw/Code/Java/vert.x/src/main/java/org/vertx/java/scratch/Pool.java:26: illegal start of type
[javac] private Queue> waiters = new ConcurrentLinkedQueue<>();
[javac] ^
[javac] 40 errors

BUILD FAILED
/Users/markw/Code/Java/vert.x/build.xml:67: Compile failed; see the compiler error output for details.

I have tested these changes on ubuntu with Java 1.7 and it compiles without error.