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

Fix off-by-one error in AbstractBndMavenPlugin #6457

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Feb 4, 2025

According to aQute.service.reporter.Reporter.SetLocation.line(int) javadoc "Line 0 is the top line" but BuildContext#addMessage says "Use 1 (not 0) for the first line" so when converting from bnd location > build context we need to add one to the line.

According to aQute.service.reporter.Reporter.SetLocation.line(int)
javadoc "Line 0 is the top line" but BuildContext#addMessage says "Use 1
(not 0) for the first line" so when converting from bnd location > build
context we need to add one to the line.

Signed-off-by: Christoph Läubrich <[email protected]>
@chrisrueger chrisrueger merged commit 1588a4c into bndtools:master Feb 5, 2025
9 checks passed
@chrisrueger
Copy link
Contributor

chrisrueger commented Feb 5, 2025

@laeubi merged, since it is a simple change in logging output.
Could you verify after the build and may post an example output (before / after), just for further reference / documentation purposes?

@laeubi
Copy link
Contributor Author

laeubi commented Feb 5, 2025

You wont see this in the log but in m2e for example, before nothing was shown in the file itself (only in the problems view) or at the wrong line, after it is shown on first line or "correct" line.

@kriegfrj kriegfrj changed the title Fix of-by-one error in AbstractBndMavenPlugin Fix off-by-one error in AbstractBndMavenPlugin Feb 5, 2025
@kriegfrj
Copy link
Contributor

kriegfrj commented Feb 5, 2025

Title was "of-by-one", which ironically means that it was off by one (letter). I'm sorry, silly things amuse me. 😄 But I fixed it so that it won't break future searches.

Thank you to all for your continuing hard work on Bnd. I'm sorry I'm not able to contribute much these days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants