Skip to content

Conversation

@DavePearce
Copy link
Collaborator

@DavePearce DavePearce commented Nov 26, 2025

This tweaks the handling of UnsignedByte within the trace generator. Previously, it was not handling signed values correctly.


Note

Route 8-bit column writes through a new byte path and add Column.write(byte) to correctly handle UnsignedByte values.

  • Java generator (pkg/cmd/generate/class.go):
    • Column setter: for bitwidth <= 8 write as byte (.write((byte) val)); retain legacy UnsignedByte overload.
  • Java snippets (pkg/cmd/generate/snippets.go):
    • Column interface adds write(byte value) to support 8-bit writes.

Written by Cursor Bugbot for commit 235d625. This will update automatically on new commits. Configure here.

@DavePearce DavePearce linked an issue Nov 26, 2025 that may be closed by this pull request
This tweaks the handling of bytes within the trace generator.  Whilst
these were being handled correctly, the mechanism was presenting a
problem for the new LtFileV2 format used within the tracer.
@DavePearce DavePearce force-pushed the 1345-feat-fix-handling-of-unsignedbyte-in-generated-tracejava-files branch from d718bdc to 235d625 Compare November 26, 2025 02:26
@DavePearce DavePearce merged commit bd3d8c8 into main Nov 26, 2025
22 checks passed
@DavePearce DavePearce deleted the 1345-feat-fix-handling-of-unsignedbyte-in-generated-tracejava-files branch November 26, 2025 03:34
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.

feat: fix handling of UnsignedByte in generated Trace.java files

2 participants