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

spring-context manifest import-package of javax.annotation;version="[1. 0.0, 2.0.0)" conflicts with provided system bundle javax.annotation; version="0.0.0" [SPR-5290] #9963

Closed
spring-projects-issues opened this issue Nov 12, 2008 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Michael Smith opened SPR-5290 and commented

While trying to use the @PostConstruct annotation, the InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(Class) method attempts to compare an annotation on a method with the initAnnotationType. Since the bundle that uses the @PostConstruct annotation is using the system bundle javax.annotation; version 0.0.0, it never compares as equal to the PostConstruct type in spring-context bundle (javax.annotation; version 1.0.0)


Affects: 2.5.6

2 votes, 3 watchers

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

As of Spring 3.0 M2, our template specifies javax.annotation.*;version="[0.0.0, 2.0.0)". I hope that works better for you.

Juergen

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0 M2 milestone Jan 11, 2019
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: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants