Skip to content

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

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions