[
https://issues.apache.org/jira/browse/XALANJ-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17787073#comment-17787073
]
Vladimir Sitnikov commented on XALANJ-2709:
-------------------------------------------
> Duplicate taglet classes and modify the new version to use the current taglet
> API in more recent JDKs
I suggest migrating to the new API and requiring Java 17 for the build.
There would be fewer profiles and customizations, and it would be easier to
maintain.
I see no value in supporting the build of Xalan with Java 8. Of course, the
produced binaries should be runnable with Java 8, however, it does not imply
Java 8 should be used for the build.
> Enable project to be built on JDK 9+
> ------------------------------------
>
> Key: XALANJ-2709
> URL: https://issues.apache.org/jira/browse/XALANJ-2709
> Project: XalanJ2
> Issue Type: New Feature
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Reporter: Alexander Kriegisch
> Assignee: Gary D. Gregory
> Priority: Major
>
> The current Maven build in branch {{xalan-java-mvn-refactored}} only works on
> JDK 8, mostly due to the taglet module which uses {{sun.com.*}} APIs which
> first were deprecated in JDK 9 and then later removed from the JDK entirely.
> I.e., currently there is no option to build on JDK 9+ with source and target
> 1.8.
> To do:
> * Duplicate taglet classes and modify the new version to use the current
> taglet API in more recent JDKs, while still retaining the old JDK 8 classes.
> Otherwise, it would no longer be possible to build Xalan-J on JDK 8.
> * Provide Maven profiles which auto-activate according to the currently used
> JDK on the build system, which alternatively build the old or the new taglet
> classes and use them later during javadoc generation.
> This way, it should still be possible to build the actual Xalan-J classes
> with target 8. Only the taglet classes would be JDK-dependent.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]