Francois Tigeot managed to get pkgsrc’s wip/jdk14 built on DragonFly. That’s great news, as the JDK is in demand, but one caveat: he did it on version 1.4 of DragonFly. It looks like some change, perhaps in system compiler, is the cause.
Update: How to duplicate his efforts.