Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16741

Search unit tests fail when built with Java 1.6

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.x
    • Fix Version/s: 2.6.3, 2.7.0
    • Component/s: Search
    • Labels:
      None
    • CLE Team Issue:
      Yes

      Description

      Search cannot be built with unit tests running under java 1.6

      The build fails during tests:
      /opt/sakai-trunk/search/search-impl/impl/src/test/org/sakaiproject/search/indexer/impl/test/TDataSource.java:[98,2] <anonymous org.sakaiproject.search.indexer.impl.test.TDataSource$1> is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper

      /opt/sakai-trunk/search/search-impl/impl/src/test/org/sakaiproject/search/indexer/impl/test/TDataSource.java:[109,4] <anonymous org.sakaiproject.search.indexer.impl.test.TDataSource$1$1> is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection

      /opt/sakai-trunk/search/search-impl/impl/src/test/org/sakaiproject/search/index/soaktest/SharedTestDataSource.java:[120,2] <anonymous org.sakaiproject.search.index.soaktest.SharedTestDataSource$1> is not abstract and does not override abstract method isWrapperFor(java.lang.Class<?>) in java.sql.Wrapper

      /opt/sakai-trunk/search/search-impl/impl/src/test/org/sakaiproject/search/index/soaktest/SharedTestDataSource.java:[142,4] <anonymous org.sakaiproject.search.index.soaktest.SharedTestDataSource$1$1> is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection

      Updating these classes to include the 1.6 methods will allow the tests to run and will remain compatible with java 1.5

        Gliffy Diagrams

          Attachments

          1. SAK-16741.patch
            36 kB
            Matthew Buckett
          2. SAK-16741-svn.patch
            36 kB
            Steve Swinsburg

            Issue Links

              Activity

                People

                • Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  aaronz Aaron Zeckoski (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code