portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitaly Baranovsky (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Created: (JS2-803) Java6 can't compile Jetspeed
Date Fri, 02 Nov 2007 17:10:51 GMT
Java6 can't compile Jetspeed

                 Key: JS2-803
                 URL: https://issues.apache.org/jira/browse/JS2-803
             Project: Jetspeed 2
          Issue Type: Bug
         Environment: JDK6
            Reporter: Vitaly Baranovsky

When I try to run maven allBuild to build jetspeed, it fails with message:

    [echo] Compiling to D:\java\src\portals-jetspeed-2.1.3-dev\components\rdbms/target/classes
    [javac] Compiling 13 source files to D:\java\src\portals-jetspeed-2.1.3-

    [javac] D:\java\src\portals-jetspeed-2.1.3-


.apache.jetspeed.components.rdbms.ojb.ConnectionRepositoryEntry.MinimalDataSource is not abstract
and does 

not override abstract method isWrapperFor(java.lan
g.Class) in java.sql.Wrapper
    [javac]     private class MinimalDataSource implements DataSource
    [javac]             ^
    [javac] 1 error

This error raises because javax.sql.DataSource in JDK1.6 become to implement java.sql.Wrapper
interface. But java5 doesn't implement it.

So, I think, jetspeed developers have to implement isWrapperFor method for MinimalDataSource
class, and tries to build jetspeed with JDK1.6.

P.S.: I think, this is a bad practice to implement new interfaces in public classes and interfaces.
I really can't understand, why Sun has did it...

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

To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org

View raw message