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

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

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

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

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:

  • #17390 TypeDescriptor should support arbitrary levels of meta-annotations ("is depended on by")

Referenced from: pull request #741

1 votes, 3 watchers

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Feb 22, 2015

Kazuki Shimizu commented

I submitted PR. Please review it.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 7, 2015

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-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

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
You can’t perform that action at this time.