The GitHub Actions job "npm_and_yarn in /javascript for protobufjs - Update #1365090518" on fory.git/main has failed. Run started by GitHub user dependabot[bot] (triggered by dependabot[bot]).
Head commit for run: 7ce550bc1ab883e953e760709ead2778d9356249 / Shawn Yang <[email protected]> fix(java): avoid instantiating abstract meta-share types (#3677) ## Why? Java compatible meta-share can receive a `TypeDef` whose root class is an interface or abstract class. Instantiating compatible serializers allocate their root type during read, so those meta roots must not get a serializer that can call `Unsafe.allocateInstance` on an uninstantiable declared type. ## What does this PR do? - Leaves abstract/interface meta-share roots without an instantiating compatible serializer in `TypeResolver#getMetaSharedTypeInfo`. - Keeps concrete values on the existing runtime type metadata or target-class transformation path. - Adds a resolver-level regression for interface-root meta-share `TypeDef`s. - Adds an interface-field compatible meta-share round-trip regression after generated serializers compile. ## Related issues - Fixes #3674 ## AI Contribution Checklist - [x] Substantial AI assistance was used in this PR: `yes` - [x] If `yes`, I included a completed [AI Contribution Checklist](https://github.com/apache/fory/blob/main/AI_POLICY.md#9-contributor-checklist-for-ai-assisted-prs) in this PR description and the required `AI Usage Disclosure`. - [ ] If `yes`, my PR description includes the required `ai_review` summary and screenshot evidence of the final clean AI review results from both fresh reviewers on the current PR diff or current HEAD after the latest code changes. ## Does this PR introduce any user-facing change? - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark N/A. This change prevents instantiating serializers for abstract/interface meta-share roots and does not change hot-path serialization for concrete runtime values. ## Tests - `ENABLE_FORY_DEBUG_OUTPUT=1 mvn -T16 -pl fory-core -Dtest=org.apache.fory.resolver.MetaShareContextTest#testMetaSharedInterfaceDoesNotBuildInstantiatingSerializer,org.apache.fory.serializer.MetaShareCompatibleTest#testInterfaceFieldCompatibleMetaShare test` - `ENABLE_FORY_DEBUG_OUTPUT=1 mvn -T16 -pl fory-core -Dtest=org.apache.fory.resolver.MetaShareContextTest,org.apache.fory.serializer.MetaShareCompatibleTest test` - `mvn -T16 -pl fory-core spotless:check` - `mvn -T16 -pl fory-core checkstyle:check` Report URL: https://github.com/apache/fory/actions/runs/25783199670 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
