-
Notifications
You must be signed in to change notification settings - Fork 9
Need transform rules for Jakarta Authentication packages #109
Comments
We need transformation rules for: javax.security.auth.message=jakarta.security.auth.message
javax.security.auth.message.callback=jakarta.security.auth.message.callback
javax.security.auth.message.config=jakarta.security.auth.message.config
javax.security.auth.message.module=jakarta.security.auth.message.module These are the Java EE 8/Jakarta EE 8 packages which need transformation. Other packages starting with |
Is this a request to update the default rules data with the four security renames? |
This is a request to update the default rules. We need to do a complete review of the Jakarta 9 APIs to make sure we don't have any other renaming gaps... |
Hi; ok, I'll add those in. |
Remaining package renames is covered by issue #114. |
I think what we will need is an exclude/disable option so that the tool is complete in the Jakarta transformation rules, but since APIs and implementations are at various stages of progress in the move to the new APIs, they will need to individually exclude/disable certain Jakarta transformations until they are ready. Since each user will not all be at the same state of progress, it is better that the tool have the complete set of Jakarta transformations available yet allow the user to exclude/disable the transformations they are not yet ready to handle. This will allow users to progress at their own rate rather than be held up by the tool having not yet enabled some Jakarta transformation rules. |
What should the transformer do when transforming EE 8 => EE 9 applications that import javax.security.auth.? Should the transformer include all of the Java SE (javax.security.auth.) classes and the Jakarta EE 9 (jakarta.security.auth.*) classes? Or only the Java SE classes, which may result in CNFE if a jakarta.security.auth.message.ClientAuth (or other jakarta.security.auth) classes are referenced in the bytecode? |
The transformer does not transform source code. Therefore, any
If you compile source code against Jakarta EE 9 libraries, your source code will also need to import from the |
That makes sense, thanks! :) |
We hit this in the migration of the Jakarta EE Platform TCK issue 244, in that we had changed "import javax.security.auth.;" to "import jakarta.security.auth.;", however, we really needed the JDK classes (not the Jakarta EE 9).
Perhaps the transformer should generate an extra import jakarta.security.auth.* classes, so that both jakarta.security.auth.* + javax.security.auth.* classes are imported.
Similar for importing javax.transaction., which could be translated to include both the JDK javax.transaction. classes, as well as jakarta.transaction.*.
The text was updated successfully, but these errors were encountered: