-
Notifications
You must be signed in to change notification settings - Fork 90
Fix some trivial issues learned on real project #492
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
Fix some trivial issues learned on real project #492
Conversation
@fabapp2 would you please approve me as a first-time contributor to run workflows? |
@tan9 Welcome to Spring Boot Migrator. Thanks for the commit 🎉 You can also emulate what our workflows do locally by doing |
Hi @sanagaraj-pivotal , the problem is that I can't manage to pass all tests in [WARNING] Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in org.springframework.sbm.jee.jsf.recipes.AddJoinfacesDependencies_MyFaces_Test
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] AddJmsConfigTest.testAddJmsConfig:122 [
Here's the diff between 1. (---) actual and 2. (+++) expected:
--- package com.example.foo;
import javax.jms.ConnectionFactory;
import org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;
import org.springframework.jms.config.DefaultJmsListenerContainerFactory;
import org.springframework.jms.config.JmsListenerContainerFactory; Am I missing something? I am using OpenJDK 17.0.5 |
939bba4
to
4bb23c1
Compare
@fabapp2 I have had rebase this branch onto main and passed all the tests, would you please provide some feedback :) |
HI @tan9 thank you for your contribution 🚀 Your PR made me write a test for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @tan9 🚀
Hi @tan9 I deleted my previous comment as I misunderstood your problem.
was not required. Could you maybe provide an example that made you add this if block? |
@fabapp2 All I can remember right now was described in the comment:
If we are working on Please let me know if the information above is enough to spot the root cause, Or I can try to reproduce this issue and give more details later today or tomorrow. |
Hi @tan9 That's valuable insight, thank you! I will finish and commit the test (and fix some things on the way) I am working on and ping you here. |
I added #516 to progress on this |
@fabapp2 I am glad that I can help. I am going to migrate tons of Java EE projects (100+) that are all tight to Spring Framework 3 under Java 6. We tried using TypeScript to migrate our projects with little success. However, due to the leak of AST, we cannot do further refactoring in an effortless way. Until I read SBM from the Preparing for Spring Boot 3.0 blog post. Thanks to all of you guys working on this project, I will try my best to make this project more robust against our legacy and fragile projects :) |
I am glad you give SBM a spin and help us to become better and more stable 🤩 |
We are currently evaluating using spring-boot-migrator on our legacy applications and encountering some trivial exceptions. Hope this pull request helps make this project more robust.