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

Description

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.

Environment

Linux, OSX, Java 8

Test Plan

None

Activity

Matthew Jones November 19, 2014 at 11:33 AM

Without fixed I wouldn't bother merging this, I would not recommend running Sakai 10 in Java 8.

Hudson CI Server November 14, 2014 at 5:05 PM

SUCCESS: Integrated in sakai-trunk-java-1.7 #518 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/518/)
- Problems (class file not found) compiling on java 8 (matthew@longsight.com: rev 315458)

Matthew Jones November 14, 2014 at 3:29 PM

I think this #3 (EB problem) is related to SAK-26078, so closing this for now

Matthew Jones November 14, 2014 at 2:58 PM

Fixed #1 and #2 on 315458, will still look at #3.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created November 14, 2014 at 2:43 PM
Updated March 27, 2025 at 10:30 PM
Resolved November 14, 2014 at 3:29 PM