Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0 Faces Standard Converters with Generics #5306

Closed

Conversation

pizzi80
Copy link
Contributor

@pizzi80 pizzi80 commented Sep 5, 2023

jakartaee/faces#1822

  • Basic Converters with Generics
  • Basic Converters optimized

+ Basic Converters use Generics
+ Enum Converter is now stateless

Signed-off-by: pizzi80 <paolo@given2.com>
Signed-off-by: pizzi80 <paolo@given2.com>
…nverters_generics

# Conflicts:
#	impl/src/main/java/com/sun/faces/util/Util.java
#	impl/src/main/java/jakarta/faces/convert/MessageFactory.java
@pizzi80 pizzi80 changed the title 5.0 Basic Converters with Generics 5.0 Faces Standard Converters with Generics Sep 5, 2023
Signed-off-by: pizzi80 <paolo@given2.com>
@mnriem mnriem added the 5.0 label Sep 5, 2023
@mnriem
Copy link
Contributor

mnriem commented Oct 11, 2023

@pizzi80 What is the status of this PR?

@pizzi80
Copy link
Contributor Author

pizzi80 commented Oct 12, 2023

The task was finalized on June 22 with the commit 6590ff1.

However, due to numerous merged pull requests in the interim,
I had to synchronize my fork, make adjustments to some imports, and alter the name.
(last commit)

This was necessitated by the decision of the Faces API community to defer the usage of Generics to Faces 5+

@mnriem
Copy link
Contributor

mnriem commented Oct 13, 2023

@pizzi80 So this PR can be closed out?

@pizzi80
Copy link
Contributor Author

pizzi80 commented Oct 13, 2023

If the master is now the version 5.0,
I think that it could finally be merged

@mnriem
Copy link
Contributor

mnriem commented Oct 13, 2023

@BalusC @arjantijms What do you think?

@pizzi80
Copy link
Contributor Author

pizzi80 commented Oct 14, 2023

@BalusC Thanks for taking the time to review my code ....

I'll fix everything the next week

+ Util.notNullArgs fixed typo
+ Faces Standard Converters with Generics
+ Faces Standard Converters uses Util.trimToNull and RIConstants.NO_VALUE

Signed-off-by: pizzi80 <paolo@given2.com>
@pizzi80 pizzi80 requested a review from BalusC October 16, 2023 15:19
@pizzi80
Copy link
Contributor Author

pizzi80 commented Oct 16, 2023

During this work I've found that inside the generic NumberConverter

there are some ugly hacks for Java 1.4 and Java 7 that use reflection
to invoke some methods that are obviously implemented in Java 8+ ...

Jsf 2.3 is Java 8+, right?

Can I remove the hacks on a separate PR?

@BalusC
Copy link
Contributor

BalusC commented Aug 4, 2024

API has been split from Mojarra project into Faces project. Current PR is superseded by jakartaee/faces#1942

@BalusC BalusC closed this Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants