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

Missing native hints for StepExecutionListener #4769

Open
neoludo opened this issue Feb 25, 2025 · 0 comments
Open

Missing native hints for StepExecutionListener #4769

neoludo opened this issue Feb 25, 2025 · 0 comments

Comments

@neoludo
Copy link

neoludo commented Feb 25, 2025

StepExecutionListener is missing from JDK proxies declarations.

hints.proxies()
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.repository.JobRepository"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.explore.JobExplorer"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.launch.JobOperator"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class));

Proposed fix :

hints.proxies()
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.StepExecutionListener"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.repository.JobRepository"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.explore.JobExplorer"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class))
			.registerJdkProxy(builder -> builder
				.proxiedInterfaces(TypeReference.of("org.springframework.batch.core.launch.JobOperator"))
				.proxiedInterfaces(SpringProxy.class, Advised.class, DecoratingProxy.class));
@neoludo neoludo added status: waiting-for-triage Issues that we did not analyse yet type: bug labels Feb 25, 2025
neoludo added a commit to neoludo/spring-batch that referenced this issue Feb 25, 2025
@fmbenhassine fmbenhassine changed the title MIssing native hints for Spring Batch Missing native hints for StepExecutionListener Feb 25, 2025
@fmbenhassine fmbenhassine added in: core related-to: native and removed status: waiting-for-triage Issues that we did not analyse yet labels Feb 25, 2025
@fmbenhassine fmbenhassine added this to the 5.2.2 milestone Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants