GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Cannot call public methods in com.google.cloud.firestore.UpdateBuilder via reflection · Issue #3580 · googleapis/google-cloud-java

Cannot call public methods in com.google.cloud.firestore.UpdateBuilder via reflection #3580

New issue
Copy link
New issue
Copy link
Closed
Closed
Cannot call public methods in com.google.cloud.firestore.UpdateBuilder via reflection#3580
Copy link
Assignees
chingor13
Labels
api: firestoreIssues related to the Firestore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@pmoriarty
pmoriarty
opened on Aug 18, 2018
Issue body actions

The com.google.cloud.firestore.Transaction and WriteBatch classes are
public but they extend a package-private abstract class
UpdateBuilder. The public methods inherited from
UpdateBuilder cannot be invoked via the Java reflection API due to
long-standing bugs such as JDK-4283544.

This is a serious problem for alternative JVM languages which use
reflection to discover Java methods. For example, Clojure uses
reflection in its compiler, and it cannot invoke these methods at all.

I know at least UpdateBuilder is affected. There may be other
instances of this pattern that I haven't found.

Possible Solution
For this specific case, making UpdateBuilder public will fix the
problem. This should have no impact on other code. The class will
still not be instantiable because it is also abstract.

If there are other package-private classes extended by public API
classes, they would also need to be declared public.

Version: google-cloud-firestore-0.52.0-beta
Java: Oracle JDK 1.8.0_152

Activity

  1. JustinBeckwith
    added
    triage meI really want to be triaged.
    on Aug 19, 2018
  2. yihanzhen
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    api: firestoreIssues related to the Firestore API.
    on Aug 20, 2018
  3. JustinBeckwith
    removed
    triage meI really want to be triaged.
    on Aug 20, 2018
  4. sduskis
    removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Oct 9, 2018
  5. chingor13
    closed this as completedin #4249on Jan 3, 2019
  6. JustinBeckwith
    assigned
    chingor13
    on Feb 1, 2021
  7. suztomo
    added a commit that references this issue on Mar 9, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-bigquery…

    d0116ee
  8. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    deps: update docker.io/library/alpine docker tag to v3.21.2 (#3580)

    e68a19f

    chore(main): release 2.52.0 (#3576)

    1dca4fb

    fix: AsyncTransactionManager did not always close the session (#3580)

    b28c0d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @chingor13
    chingor13

Labels

api: firestoreIssues related to the Firestore API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.