googleapis / googleapis/google-cloud-java

[java-firestore] CustomClassMapper does not handle well getters that are java bridge methods

Đang mở
#13,134 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
api: firestore priority: p2 type: bug
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/java-firestore/issues
- Check for answers on StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform

If you are still having issues, please include as much information as possible:

#### Environment details

1. Specify the API at the beginning of the title. For example, "BigQuery: ...").
General, Core, and Other are also allowed as types
2. OS type and version:
3. Java version:
4. firestore version(s):

#### Steps to reproduce

Mirroring from https://github.com/firebase/firebase-admin-java/issues/435
1. ?
2. ?

#### Code example

IMHO it worth adding following code to com.google.cloud.firestore.CustomClassMapper.BeanMapper#shouldIncludeGetter:
// Bridge methods
if (method.isBridge()) {
return false;
}

#### Stack trace
```
Any relevant stacktrace here.
```

#### External references such as API reference guides

- ?

#### Any additional information below

Following these steps guarantees the quickest resolution possible.

Thanks!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.