JDK-1.6 compability

1 view
Skip to first unread message

rssh

unread,
Feb 4, 2008, 5:41:30 PM2/4/08
to osjava
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>

Henri Yandell

unread,
Feb 5, 2008, 12:36:27 AM2/5/08
to osj...@googlegroups.com
Thanks Ruslan, I've applied the patch.

Attachments were turned off in JIRA because a huge amount of spam was
getting in on them. I've looked a few times at migrating from JIRA to
Google tracker, but never had the energy to complete the job.

Hen

rssh

unread,
Feb 5, 2008, 8:32:26 AM2/5/08
to osjava
Thanks.

Yet one question -- changes to pom.xml is not commited to cvs.

But my maven by default run java compiler with -source 1.3 patch
(which prevent sources with generic by compiling).
Are exists some other way to set source level of java compiler in
maven ?

Henri Yandell

unread,
Feb 5, 2008, 10:53:02 PM2/5/08
to osj...@googlegroups.com
On Feb 5, 2008 5:32 AM, rssh <Rus...@shevchenko.kiev.ua> wrote:
>
> Thanks.
>
> Yet one question -- changes to pom.xml is not commited to cvs.

Should be there:

http://code.google.com/p/osjava/source/detail?r=2614

Hen

Reply all
Reply to author
Forward
0 new messages