Repository navigation
Bump jaxb to latest - #414
Conversation
b50e5cd to
1a8fb57
Compare
1a8fb57 to
b3744ff
Compare
|
Rebased onto current master (resolved the
The PR is now only the jaxb move: Verified locally on Java 11 with Maven 3.9.16: CI will only go green once #429 (Maven pin) is merged, since newer runner Maven rejects the duplicate |
|
This should pass again once #429 is in |
CoursesCalendarAdapter had three problems after the ical4j 4.x migration: - It added properties and events through calendar.getProperties() and getComponents(), which are unmodifiable in 4.x, so retrieving a course calendar threw UnsupportedOperationException. Add them through the Calendar API instead. - It discarded the result of every props.add(...). PropertyList.add() returns a new list in 4.x, so events were built with no properties. Capture the results. - It computed the course's time zone and then ignored it, building DTSTART, DTEND and the recurrence end as UTC Instants. A WEEKLY recurrence cannot be expanded from an Instant at all (it throws UnsupportedTemporalTypeException, which the content processor logs and skips), and expanding in UTC would shift a class's local time across a daylight saving change. Anchor all three in the course's own zone. selectTimeZone() became selectZone() and no longer needs the ical4j timezone registry. Add CoursesCalendarAdapterTest: one test checks the assembled calendar and its event, the other expands a weekly Monday 8 PM Pacific course across the 2026-03-08 DST change and checks every instance stays at 8 PM local on a Monday. Both failed before the fix. These tests need jaxb2-basics-runtime >= 0.13 to resolve the courses-portlet-api 2.1.1 model (JAXBToStringStrategy.getInstance()), which is the jaxb update in uPortal-Project#414. They fail on the pre-uPortal-Project#414 pom with a NoSuchMethodError and pass once it is merged.
No description provided.