jimwebber/neo4j-tutorial — Issue #8: ant build fails with OS X JDK 7 preview
Author: klauern
Created: 2011-10-29 00:53:19+00:00
State: open

First, I can probably switch this to 1.6 on OS X (10.6) and things work fine, but I wasn't sure if this is supposed to happen or not.

```
klauer@klauer-imac ~
$ java -version
openjdk version "1.7.0-b215"
OpenJDK Runtime Environment (build 1.7.0-b215-20111028)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)

klauer@klauer-imac ~
$ cd Programming/Java/neo4j-tutorial/

klauer@klauer-imac ~/Programming/Java/neo4j-tutorial
$ ant
Buildfile: build.xml

clean:
[delete] Deleting directory /Users/klauer/Programming/Java/neo4j-tutorial/target

-create.ivy.dir:

-lib.dir-available:

download-ivy:

install-ivy:

lib.retrieve:

compile:
[mkdir] Created dir: /Users/klauer/Programming/Java/neo4j-tutorial/target/main/classes
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-aspects.jar!org/springframework/orm/jpa/aspectj/JpaExceptionTranslatorAspect.class:14::0 advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-aspects.jar!org/springframework/scheduling/aspectj/AbstractAsyncExecutionAspect.class:52::0 advice defined in org.springframework.scheduling.aspectj.AbstractAsyncExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-data-neo4j.jar!org/springframework/data/graph/neo4j/support/node/Neo4jNodeBacking.class:105::0 advice defined in org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-data-neo4j.jar!org/springframework/data/graph/neo4j/support/node/Neo4jNodeBacking.class:253::0 advice defined in org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-data-neo4j.jar!org/springframework/data/graph/neo4j/support/node/Neo4jNodeBacking.class:263::0 advice defined in org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at org/springframework/mock/staticmock/AnnotationDrivenStaticEntityMockingControl.aj:64::0 advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-aspects.jar!org/springframework/mock/staticmock/AbstractMethodMockingControl.class:160::0 advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-aspects.jar!org/springframework/mock/staticmock/AbstractMethodMockingControl.class:169::0 advice defined in org.springframework.mock.staticmock.AbstractMethodMockingControl has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-data-neo4j.jar!org/springframework/data/graph/neo4j/support/relationship/Neo4jRelationshipBacking.class:130::0 advice defined in org.springframework.data.graph.neo4j.support.relationship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch]
[iajc] warning at /Users/klauer/Programming/Java/neo4j-tutorial/lib/spring-data-neo4j.jar!org/springframework/data/graph/neo4j/support/relationship/Neo4jRelationshipBacking.class:137::0 advice defined in org.springframework.data.graph.neo4j.support.relationship.Neo4jRelationshipBacking has not been applied [Xlint:adviceDidNotMatch]
[copy] Copying 1 file to /Users/klauer/Programming/Java/neo4j-tutorial/target/main/classes

compile.tests:
[mkdir] Created dir: /Users/klauer/Programming/Java/neo4j-tutorial/target/test/classes
[javac] Compiling 2 source files to /Users/klauer/Programming/Java/neo4j-tutorial/target/test/classes
```
### Error in log:

```
[javac] javac: target release 1.5 conflicts with default source release 1.7

BUILD FAILED
/Users/klauer/Programming/Java/neo4j-tutorial/build.xml:54: Compile failed; see the compiler error output for details.

Total time: 15 seconds
```