Repository navigation
Commit 6c52e82
committed
fix(java): no import resolves to a generated record accessor
The import resolver's symbol-name fallback tries the trailing segments of
an import path that names no project symbol, and a package segment that
merely spells a record accessor bound the import to it. On elasticsearch,
`import javax.crypto.spec.PBEKeySpec` bound a record's spec() accessor,
and `new PBEKeySpec(...)`, annotations and type uses then followed the
import onto it: 6,302 IMPORTS edges into accessors, plus CALLS, USAGE,
DECORATES and THROWS through the import map.
A generated member is registered by qualified name only, and no Java
import can name an instance accessor, so the fallback now skips it exactly
as it skips a Python def-local (DeusData#1548).
The record pipeline fixture gains an import whose package segment spells
an accessor. Without the change it fails in the sequential, parallel and
incremental venues: an IMPORTS edge into Point.y, and make() -> Point.y.
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>1 parent 729ce33 commit 6c52e82
2 files changed
Lines changed: 35 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2592 | 2592 | | |
2593 | 2593 | | |
2594 | 2594 | | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
2595 | 2604 | | |
2596 | 2605 | | |
2597 | 2606 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17374 | 17374 | | |
17375 | 17375 | | |
17376 | 17376 | | |
17377 | | - | |
| 17377 | + | |
| 17378 | + | |
| 17379 | + | |
| 17380 | + | |
| 17381 | + | |
| 17382 | + | |
17378 | 17383 | | |
17379 | 17384 | | |
17380 | 17385 | | |
| |||
17387 | 17392 | | |
17388 | 17393 | | |
17389 | 17394 | | |
17390 | | - | |
| 17395 | + | |
17391 | 17396 | | |
17392 | 17397 | | |
17393 | 17398 | | |
17394 | 17399 | | |
| 17400 | + | |
17395 | 17401 | | |
17396 | 17402 | | |
17397 | 17403 | | |
| |||
17451 | 17457 | | |
17452 | 17458 | | |
17453 | 17459 | | |
| 17460 | + | |
| 17461 | + | |
| 17462 | + | |
| 17463 | + | |
| 17464 | + | |
| 17465 | + | |
| 17466 | + | |
| 17467 | + | |
| 17468 | + | |
| 17469 | + | |
| 17470 | + | |
| 17471 | + | |
| 17472 | + | |
17454 | 17473 | | |
17455 | 17474 | | |
17456 | 17475 | | |
| |||
17475 | 17494 | | |
17476 | 17495 | | |
17477 | 17496 | | |
| 17497 | + | |
17478 | 17498 | | |
17479 | | - | |
| 17499 | + | |
17480 | 17500 | | |
17481 | 17501 | | |
17482 | 17502 | | |
| |||
17489 | 17509 | | |
17490 | 17510 | | |
17491 | 17511 | | |
| 17512 | + | |
| 17513 | + | |
| 17514 | + | |
17492 | 17515 | | |
17493 | 17516 | | |
17494 | 17517 | | |
| |||
0 commit comments