Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-25903 Upgrade Java to JDK 8
  3. SAK-28091

New problems (class file not found) compiling on Java 8 (1.8.0_25)


    • Type: Sub-task
    • Status: RESOLVED
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 11.0
    • Fix Version/s: 11.0
    • Component/s: Entity Broker, Presence, Rwiki
    • Labels:
    • Environment:
      Linux, OSX, Java 8


      Tested on both Linux and OSX with Java 8, if you try to do a full build it's failing with in a few places.

      1) presence with the error

      [ERROR] /home/corley/sakaisource/sakai-trunk/presence/presence-tool/tool/src/java/org/sakaiproject/presence/tool/PresenceToolAction.java:[87,32] cannot access org.sakaiproject.courier.api.ObservingCourier
      class file for org.sakaiproject.courier.api.ObservingCourier not found

      presence-tool doesn't have a dependency on courier-api, but it doesn't "directly" depend on it either, however courier-util extends it.

      2) rwiki and samigo (samlite) with the error

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project sakai-radeox: Compilation failure
      [ERROR] /home/corley/sakaisource/sakai-trunk/rwiki/rwiki-util/radeox/src/java/org/radeox/Messages.java:[43,26] cannot access org.sakaiproject.i18n.InternationalizedMessages
      [ERROR] class file for org.sakaiproject.i18n.InternationalizedMessages not found

      This pom didn't have a dependency on kernel api (where this class was)

      This seems like it's causing a problem now with these missing api dependencies in the pom but I'm not sure why. Putting a provided dependencies seems to fix these

      3) It's getting a test failure in entitybroker, but no failures when skipping tests. Will have to look at this.

        Gliffy Diagrams


            Issue Links



                • Assignee:
                  jonespm Matthew Jones
                  jonespm Matthew Jones
                • Votes:
                  0 Vote for this issue
                  2 Start watching this issue


                  • Created:

                    Git Source Code