Skip to content

Development - #114

Open
treblereel wants to merge 15 commits into
masterfrom
development
Open

Development#114
treblereel wants to merge 15 commits into
masterfrom
development

Conversation

@treblereel

Copy link
Copy Markdown
Owner

No description provided.

treblereel and others added 15 commits October 2, 2025 16:32
Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
Remove javax.xml and org.w3c.dom emulation classes now provided by
stdlib 0.8. Update j2cl platform to 20260527-1, GWT to 2.13.0,
and Java source/target to 17 for samples. Add j2cl super-source
module descriptor.

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
…veXMLReader

The browser's DOMParser produces these node types (7, 8, 10) when parsing
XML with DOCTYPE declarations and comments. The visit() method only handled
types 1-4 and 9, throwing UnsupportedOperationException for anything else.

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
Only strip whitespace text nodes when the parent also has element children
(formatting whitespace between elements). When the parent has only text
children, the whitespace is legitimate content and must be preserved.

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
J2CL's Double.toString()/Float.toString() uses JavaScript's native string
conversion which produces "1" instead of "1.0" for whole numbers. Update
expected XML strings to match the J2CL platform behavior.

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
…amespace handling

createElement/setAttribute don't support XML namespaces in browser DOM, causing
failures for prefixed elements (e.g. bpmn40:value5) and namespace declarations.
Switch to createElementNS/setAttributeNS and add namespace lookup for prefixed attributes.

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
…format code

- Fix duplicate import conflicts in MapperSuite.java using FQN for ambiguous classes
- Remove duplicate getModuleName() and import in primitive/BooleanTest.java
- Replace Assert.assertEquals with assertEquals in NamespaceTest (test2, test3, test4)
- Skip surefire tests (GWTTestCase requires GWT DevMode, not standard surefire)
- Auto-format 77 files to comply with fmt-maven-plugin

Signed-off-by: Dmitrii Tikhomirov <chani.liet@gmail.com>
- Replace maven-version-test with java-version-test (Java 17, 21, 25)
- Add browser-actions/setup-chrome for J2CL browser tests
- Bump actions/setup-java to v5
- Include tests-j2cl in CI, exclude only tests-gwt2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- processor: use annotationProcessorPaths for auto-service instead of
  classpath discovery (broken by JEP 477 in Java 23+), add
  ServicesResourceTransformer to shade plugin for proper SPI merging
- tests/jre: move processor from classpath dependency to
  annotationProcessorPaths for Java 25 compatibility
- CI: exclude tests-j2cl on Java 17 (J2CL deps require class version
  65/Java 21), setup Chrome only when running J2CL tests

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
createElementNS causes XMLSerializer to suppress xmlns="..." attributes
since it considers the namespace already declared at the element level.
Use createElement + setAttribute("xmlns", ...) for unprefixed elements
so the namespace declaration appears as a regular attribute in output.
Keep createElementNS only for prefixed elements (e.g. bpmn40:value5).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
lookupNamespaceURI may not work on createElement elements in Chrome.
Use a HashMap to track prefix->namespace bindings from writeNamespace
calls, and look up from it in writeAttribute for prefixed attributes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use attr.localName instead of stripping only xsi: prefix from attr.name.
This correctly handles all namespace prefixes (drools:, bpmn40:, etc.)
when looking up attribute names in the deserializer property map.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant