Skip to content

Commit

Permalink
Added JDK 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Aug 18, 2011
1 parent 7bcf78f commit d0cf319
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion framework/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

<target name="compile" description="compile without cleaning">
<mkdir dir="classes"/>
<javac encoding="utf-8" srcdir="src" destdir="classes" debug="true" target="1.5">
<javac encoding="utf-8" srcdir="src" destdir="classes" debug="true" source="1.5" target="1.5">
<classpath refid="project.classpath" />
</javac>
<copy todir="classes">
Expand Down
Binary file removed framework/lib/org.eclipse.jdt.core-3.6.0.jar
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions framework/src/play/db/DBConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,13 @@ public static class ProxyDriver implements Driver {
this.driver = d;
}

/*
* JDK 7 compatibility
*/
public java.util.logging.Logger getParentLogger() {
return null;
}

public boolean acceptsURL(String u) throws SQLException {
return this.driver.acceptsURL(u);
}
Expand Down
10 changes: 9 additions & 1 deletion framework/src/play/db/DBPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.List;
import java.util.Properties;
import java.util.Set;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -117,7 +118,7 @@ public void invocationFinally() {
}

/**
* Needed because DriverManager will not load a driver ouside of the system classloader
* Needed because DriverManager will not load a driver outside of the system classloader
*/
public static class ProxyDriver implements Driver {

Expand All @@ -127,6 +128,13 @@ public static class ProxyDriver implements Driver {
this.driver = d;
}

/*
* JDK 7 compatibility
*/
public Logger getParentLogger() {
return null;
}

public boolean acceptsURL(String u) throws SQLException {
return this.driver.acceptsURL(u);
}
Expand Down

0 comments on commit d0cf319

Please sign in to comment.