incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Janne Jalkanen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JSPWIKI-277) Tests compatibility with java 1.6
Date Mon, 09 Jun 2008 19:50:45 GMT

    [ https://issues.apache.org/jira/browse/JSPWIKI-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603660#action_12603660
] 

Janne Jalkanen commented on JSPWIKI-277:
----------------------------------------

Ngh.  It's actually a bit more complicated than that, since we're implementing an interface
which was extended in JDK6 by additional classes - if we implement the methods, then JSPWiki
tests stop being compilable on 1.5.

So I guess this will have to wait for a long time, unless someone figures out a way to make
the source code functional for both.

> Tests compatibility with java 1.6
> ---------------------------------
>
>                 Key: JSPWIKI-277
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-277
>             Project: JSPWiki
>          Issue Type: Improvement
>          Components: Servlet Container/Java compatibility
>    Affects Versions: 2.6.2
>         Environment: java 1.6 sun jdk
>            Reporter: Fabian Haupt
>            Priority: Trivial
>
> With the add of the two methods:
>  public boolean isWrapperFor( Class<?> arg0 ) throws SQLException
>     {  return false; }
>     public <T> T unwrap( Class<T> arg0 ) throws SQLException
>     {      return null;   }
> (probably not a very usefull implementation, but it works anyways ;) )
> in TestJDBCDataSource.java (com.ecyrd.jspwiki)
> JSPWiki becomes runnable and compilable in java-1.6
> This is just a _minor_ change, and so far I have encountered no problem running and building
jspwiki in java-1.6. As this wouldn't break anything with 1.5 maybe this could be added to
the svn?
> greetings
> Fabian Haupt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message