Skip to content

Fix static array access metadata#210

Open
gshaowei6 wants to merge 1 commit into
Syncleus:masterfrom
gshaowei6:fix-static-array-access-metadata-86
Open

Fix static array access metadata#210
gshaowei6 wants to merge 1 commit into
Syncleus:masterfrom
gshaowei6:fix-static-array-access-metadata-86

Conversation

@gshaowei6
Copy link
Copy Markdown

@gshaowei6 gshaowei6 commented May 15, 2026

Fixes #86

Summary:

  • Record array field assignments/accesses for both instance and static array field refs.
  • Resolve the underlying AccessField from array refs, including nested array element refs.
  • Add regression coverage for static array field assignment/access metadata and existing instance-array behavior.

Verification:

  • Docker JDK8 Maven: mvn -Dtest=com.aparapi.internal.model.EntrypointFieldAccessTest test -> BUILD SUCCESS, Tests run: 2, Failures: 0, Errors: 0, Skipped: 0.
  • Manual JUnit run with local JDK 23 javac --release 8: EntrypointFieldAccessTest, AccessIntArrayTest, ClassHasStaticFieldAccessTest, StaticFieldStoreTest (8 tests OK).

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.

[Bounty $20] Codegen not correct for assignment to static array element

1 participant