Skip to content

Support @NumberFormat as a meta-annotation [SPR-12743] #17340

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

Closed
spring-projects-issues opened this issue Feb 22, 2015 · 3 comments
Closed

Support @NumberFormat as a meta-annotation [SPR-12743] #17340

spring-projects-issues opened this issue Feb 22, 2015 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Feb 22, 2015

Kazuki Shimizu opened SPR-12743 and commented

Support @NumberFormat as a meta-annotation the same as @DateTimeFormat.

@NumberFormat(style = NumberFormat.Style.PERCENT)
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PercentNumber {}
public class TestBean {
    @PercentNumber
    private Double percent;
    // ...
}

Affects: 4.1 GA

Issue Links:

Referenced from: pull request #741

1 votes, 3 watchers

@spring-projects-issues
Copy link
Collaborator Author

Kazuki Shimizu commented

I submitted PR. Please review it.

@spring-projects-issues
Copy link
Collaborator Author

Sam Brannen commented

Addressed in GitHub commits df1d90f (4.2) and bac012f (4.1.6):

Support @NumberFormat as a meta-annotation

This commit ensures that @NumberFormat can be used as a
meta-annotation, as was already the case for @DateTimeFormat.

In addition, this commit polishes FormattingConversionServiceTests and
MvcNamespaceTests.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Mar 7, 2015

Sam Brannen commented

Please note that this issue is closely related to #17390.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants