-
Notifications
You must be signed in to change notification settings - Fork 1
Upgrade Spring boot To 4.0.3 #227
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
base: develop
Are you sure you want to change the base?
Changes from all commits
fe59c5a
c3ec53d
d53aeda
2b2316a
cfed20b
2bd4a54
4ce1ee7
5086432
ae07690
32348bc
f5f2d02
1d0831c
71c481d
71559e4
bcd51cc
5eb8e03
43ff246
3fc9477
352f139
bf831a0
43583a9
cacd39d
8f73dfa
1bd9860
69c7179
65a81c0
8d2fcfd
ea39409
f4ada6d
ea24e34
00cc4f9
f96e89c
6c416e3
ec7a850
cd6dd26
5974153
acb3827
1b7b13a
9b8242e
1e30b07
0954019
d99effd
49215c1
481c0e6
22e42fc
33cf993
83bbc9f
d281b06
5988459
c1f06d8
49f5643
9035c2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| package us.dot.its.jpo.ode.udp.generic; | ||
|
|
||
| import io.netty.handler.codec.UnsupportedMessageTypeException; | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After upgrading to springboot 4, this package is no longer included and we only use the import here. This is also the only place that throws and catches this exception since the method that is throwing it is a private method and the method that catches it just logs that there was an unsupported message. Instead of including it back into the project, I adjusted the class to throw and subsequentially catch a custom UnsupportedMessageTypeException. I'm not sure if we wanted to switch this to an IllegalArgumentException instead, but I felt it doesn't really fit the situation a 100 percent. |
||
| import java.net.DatagramPacket; | ||
| import lombok.extern.slf4j.Slf4j; | ||
| import org.apache.tomcat.util.buf.HexUtils; | ||
|
|
@@ -152,4 +151,18 @@ private void routeMessageByMessageType( | |
| default -> throw new UnsupportedMessageTypeException(messageType); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| /** | ||
| * Exception class for Unsupported Message Types. | ||
| */ | ||
| public static class UnsupportedMessageTypeException extends Exception { | ||
| /** | ||
| * Constructs a new UnsupportedMessageTypeException with the specified detail message. | ||
| * | ||
| * @param message the detail message | ||
| */ | ||
| public UnsupportedMessageTypeException(String message) { | ||
| super(message); | ||
| } | ||
| } | ||
| } | ||
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.
This change is not related to the spring upgrade, but is instead needed to be able to build and deploy the ode.