Good day.
simple-jndi does not compiled with
(bug report is SJN-78)
Interesting, that I can't pass patch to project, becouse attachments
in JIRA are disabled and google web interface for this group also have
no attachments.
So, please contact me to receive patch by email.
Below is 'by hand' cut and paste of one:
Index: simple-jndi/project.xml
===================================================================
--- simple-jndi/project.xml (revision 2613)
+++ simple-jndi/project.xml (working copy)
@@ -95,6 +95,7 @@
<build>
+
<nagEmailAddress>
bay...@osjava.org</nagEmailAddress>
<sourceDirectory>src/java</sourceDirectory>
Index: simple-jndi/src/java/org/osjava/sj/loader/SJDataSource.java
===================================================================
--- simple-jndi/src/java/org/osjava/sj/loader/SJDataSource.java
(revision 2613)
+++ simple-jndi/src/java/org/osjava/sj/loader/SJDataSource.java
(working copy)
@@ -133,5 +133,16 @@
return this.url.hashCode() & this.username.hashCode() &
this.driver.hashCode();
}
+
+ public boolean isWrapperFor(Class<?> iface) throws SQLException
+ {
+ return false;
+ }
+
+ public <T> T unwrap(Class<T> iface) throws SQLException
+ {
+ throw new SQLException("this object is not wrapper");
+ }
+
}
Index: simple-jndi/pom.xml
===================================================================
--- simple-jndi/pom.xml (revision 2613)
+++ simple-jndi/pom.xml (working copy)
@@ -117,6 +117,14 @@
<forkMode>always</forkMode>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
</plugins>
</build>