I am using SegmentFinder.findSegment() to find segments in a message no matter what groups (if any) the segments are in. This works fine for most segments I've tried (PID, SCH), but not for ones like PID2. getSegment() works for these.
I think the problem is that SegmentFinder.findStructure() compares Structure.getName() to the provided pattern, but getName() returns 'PID' for the 'PID2' segment so it will never match.
Hi DiGiT,
Thanks for the report!
If possible, can you provide a sample message, code, etc. or anything which demonstrates the issue?
maven project demonstrating failure. run mvn test
Maven project attached. Just run 'mvn test'. Hope it helps
A fix has been checked in. Thanks!