mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-27 22:38:50 +00:00
* fix(java): preserve receiver and generated dependency ownership
Implement the coupled Java-local P1-P4 capture and resolution changes with exact-target, shadowing, array, resource, lambda and Lombok controls. Keep shared ingestion contracts and dependency versions unchanged.
Add a deterministic Java ingestion benchmark, before/after evaluation, measured baseline and receiver-delta accounting. Build, source/test typechecks and Java benchmark gates pass. The full 1,638-file run reports 34,713 passed, 78 failed and 95 skipped; remaining failures were diagnosed as environment or existing baseline families. The packed-runtime timeout passes in isolation.
* fix(java): resolve nested qualified types and judge each reference
- Register top-level and member types under their full names, so
`models.Outer.Inner` and same-file `Uniq.Solo` receivers resolve.
- Decide each qualified reference at its own use site instead of
refusing a spelling for the whole file. A member type bound at file
level no longer shadows the package reading outside its declaring
type; a root the use site may inherit, or a root type from another
file, still refuses.
- Pin the exact expected set in the root-shadow test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): scope switch-group locals, compact-constructor receivers and commented array types
- Give each switch block its own lexical block scope, so a local declared
in an old-style switch group ends with the switch instead of leaking to
the rest of the method.
- Keep a scope's existing name claims unchanged when they cannot be
parsed, instead of replacing them with only the new local claims.
- Treat a record's compact constructor as an instance context: it now
binds `this` and collects implicit array receiver chains.
- Remove `//` and block comments structurally from written Java type
spellings, so `User // note` + `[]` reads as `User[]`.
- Pin exact call targets in the annotated-lambda and array-alias
adversarial tests so they fail when the edge is lost.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): keep a factory alias copied in a nested block
An alias of a call-result `var` copied inside a nested block
(`var u = make(); if (c) { var w = u; w.save(); }`) lost its producer,
so `w.save()` had no edge where BASE resolved it.
- Java: a copy in a nested block now keeps the outer producer when the
source is never written in its own block. Any write to the source
(before the copy, or later in a loop) refuses the copy. A copy never
reads a source across a local or anonymous class body, where a field of
the same name could shadow it.
- Shared scope extractor (no language named): a call-result assignment
may carry an optional `@call-result-assignment.scope` anchor. The
binding then lands in the scope that declares the copy, not in the
outer call's scope. Every other provider leaves it unset, so its
behaviour is unchanged.
- The unit test that pinned "no capture for a nested-block copy" now
expects that copy to keep the outer producer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): tighten Lombok annotation identity and generated constructors
- Accept lombok.* beside an unrelated wildcard import; refuse only a second
wildcard package known to declare the same simple name.
- Treat a base type outside the workspace as adding no member type names;
an undecidable inherited scope now suppresses the field instead of
letting a class-level default fall through.
- Do not inherit private member types, nor package-private ones across
packages.
- Record single-static-imports as shadows of type-import-on-demand.
- Model FieldDefaults(makeFinal = true) like Value's implicit final for
setters and generated constructors; unreadable options stay incomplete.
- Find member annotation types declared after enum constants.
- Model class-level Builder's all-args constructor only when no constructor
is written and no XArgsConstructor is present.
- Tolerate comments between @ and the annotation name in the workspace
pre-filter.
- Keep the original file when workspace re-extraction fails instead of
throwing.
- Index package types by simple name once per reconcile.
- Fold the duplicated package-shadow review test into the lifecycle test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): resolve this/super array producers and harden the ingestion bench
- Resolve `this` and `super` producer receivers of indexed calls
(`super.items()[0].save()`) through the lexically enclosing class and its
direct superclass, and bind the member only when the selected producer's
declared return type, indexed once per index step, names the folded owner.
- Pin the overloaded intermediate producer as unresolved, with the reason.
- java-ingestion --record: write an exclusively created temporary file and
rename it over the baseline; refuse a symlinked baseline via lstat only.
- Persist only portable runtime provenance in the baseline and drop the
machine-specific paths from the committed baseline.json.
- Document the receiver-resolution baseline move, list the Lombok worker
tests in the cross-platform subset, and run java-ingestion --check in CI.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): scope declared-type lookups and prove JDK containers at resolution
- Record components are owned by the record body; switch-group locals by
their switch block; compact constructors are lexical owners.
- The declared-type lookup stops at a class, interface or enum body that can
inherit members (extends/implements, anonymous or enum-constant body).
- Type parameters are scoped to the declaration that introduces them.
- More java.util / java.util.concurrent collections and the Map family are
proven containers; java.util.* (and implicit java.lang.*) names are accepted
when the file declares no such type.
- Each inferred element records the name that proved its container (raw
java root, single import, on-demand import) and the scope where the
container was written, carried in the Java capture side channel. Resolution
refutes a proof when an enclosing class inherits a member type of that
name, or (root/on-demand) when any type of that name is visible there.
- The element keeps its own lookup anchor, so a raw java.util.List over a
local class resolves to that local class again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): type var loops over a selected method's container result
- `var xs = producer(); for (var x : xs)` (and `for (var v : m.values())` /
`m.keySet()` over a Map local) records the producer call with an element
route, anchored at the loop body. A copied local and the existing write
guards apply as for factory aliases.
- Each method's declared JDK container return type records, in its own file,
what its element is per route and the proof that names the container
(single import, on-demand import, raw java.*). Resolution checks that proof
where the return type was written, with the same inherited-member and
visible-type checks as other inferred elements, and registers the element's
qualified spelling there.
- The loop variable is typed only from the exactly selected producer's
confirmed element; overloads that cannot be selected, type-variable
elements and a refuted container leave it unbound.
- Shared, additive: `CallResultAssignmentSite.element` (optional route) and
`ScopeResolver.callResultElementType` (optional hook), consulted only for
sites that carry a route; element sites are skipped when no exact callee
selection exists. Existing call-result sites are unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(bench): re-baseline Java scope-capture and ingestion benchmarks
- bench/scope-capture: record the Java capture-logic change from this PR and
its review follow-ups (java, java-local-types, java-deep-chain) with a
_rebaselined_3955 note; fixture corpus unchanged, scaling within budget.
- bench/java-ingestion: the two local-element cases now expect the
block-local class instead of an empty set; baseline re-recorded with
--full --record and passing --check; README/RESULTS note the change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): keep switch-group and constructor aliases, scope initializer receivers
- An alias copied in an unbraced `case 1:` group or a constructor body
keeps its producer again: a switch block is one lexical block for all
its statement groups, and a constructor body is a block. A write to the
source inside the switch still refuses the copy.
- A bare-name assignment inside a local or anonymous class body, or to a
lambda parameter, is no longer counted as a write to an outer local of
the same name. The type-body check is now a depth comparison instead of
a parent walk per copy.
- A local type declared between a producer and its copy no longer drops
the copy: the copy is anchored at its own name and the producer is
typed at its own call, so a local type named like the result type
cannot capture it. The unit test that pinned the old drop now expects
the copy.
- Instance field initializers and instance initializer blocks get the
implicit-this array receiver like methods do. Where such a chain is
attached, the context gets a `this` binding (a field initializer gets
its own block scope over the value). Static fields, static initializers
and interface constants still refuse.
- Annotated instanceof pattern types (`o instanceof @Ann User u`,
`p.@Ann User`) bind the type without the annotation.
- receiver-binding docs mention compact constructors and initializers.
- The Java ingestion bench sorts fingerprint inputs by code unit, not by
the runtime locale.
- The Lombok cache lifecycle test keeps its repository and cache under one
temporary parent so a setup failure cannot leak a directory.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): type array-element receivers and read visible qualifier roots as types
- Type an array access as its operand's component type, one dimension per
index, so producers on array elements (`services[0].getUsers()[0].save()`,
`values[0].clone().save()`) are selected on their real owner.
- Read the root of a dotted type spelling as a type when a same-package type,
a single-type import or an on-demand import of a workspace package names it
(JLS 6.5.4.1), in both the qualified-type key and overload type parsing;
refuse when the root is ambiguous, statically imported or an inherited
member type.
- Check private member types per use site: they are accessible only inside
their own top-level class (JLS 6.6.1), not from another top-level class in
the same file.
- Index type facts by start position in collectNamedTypes instead of a scan
per class scope.
- Answer same-package type names for JDK container proofs from an uncapped
per-package name index, so on-demand and raw `java.util.List` element
inference survives packages over the 200-sibling injection cap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(bench): re-record the Java ingestion baseline after round-two fixes
The fingerprint sorts now use code-unit order, and a same-package class
named `java` now shadows the `java` package in the shadow probe (one new,
correct edge per shape). Semantic fingerprint and case counts are unchanged;
--check passes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): refuse inherited member-type roots and type indexed overloaded producers
- A qualified type spelling whose root name lookup leaves unclaimed is no
longer read as a package when an enclosing class inherits a workspace
member type of that name (JLS 6.4.1); it refuses instead.
- A call result indexed by trailing subscripts (super.over()[0].save(),
getUsers()[0].save()) is typed from the overload selected at that call,
one element per index step. The shared selected-call path peels each
trailing index step through the provider's existing elementTypeOf hook;
it is inert for providers that return no producer for such chains.
Ambiguous or unknown-argument selections stay unresolved.
- The try-with-resources self-read test pins its exact target set.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): resolve inherited fields and static-imported Lombok bases
- Lombok workspace proof: a superclass named through a single-static-import
now resolves to the workspace member type it imports (declared or
inherited by the owner), so its member annotation types veto Lombok.
An owner outside the workspace that may hide a workspace candidate, or
an ambiguous import, makes the base uncertain instead of external.
- Declared element types: a lookup that walks out of a class body with
supertypes keeps the outer candidate (or none) and records a proof that
no workspace supertype declares a field of that name. Resolution checks
it against the MRO and each supertype's own fields (captured per type,
with access and proven container elements). Exactly one inherited
field replaces the binding with that field's element; a private or
other-package field does not shadow; an outside supertype, a field with
an unprovable element, or several declarations leave it unresolved.
- Interface and enum constants are now bindings of their own type body,
so they hide an enclosing field.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* optimize(java-ingest-scaling): index same-named callable defs by position
boundCallableStartPosition scanned every same-label, same-name definition
for each callable and read native node positions per candidate, which is
quadratic for a file with many same-named methods. Each name bucket now
parses and sorts its positions once (lazily) and binary-searches the
callable's range; distance and tie rules are unchanged.
S2 (one file, N same-named methods): per-doubling growth 2.894 -> 2.208,
N=2000 pipeline 17.7 s -> 10.0 s; graph fingerprints identical.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* optimize(java-ingest-scaling): rank package siblings once per directory
populateNamespaceSiblings filtered and sorted every sibling class for
every file of a package (O(P^2 log P)). Proximity depends only on the
file's directory, so the nearest-first order is now built once per
distinct directory and each file walks it while skipping its own entries;
a file whose own name continues another sibling's path falls back to the
old per-file sort. Injection, truncation and merge semantics are unchanged.
S4 (one package, P files): scope-resolution per-doubling growth
3.98 -> 3.41, N=2000 scope resolution ~3.9 s -> ~2.8 s; graph
fingerprints identical across all languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* optimize(java-ingest-scaling): merge sibling type bindings through a per-package index
For an untruncated file, populateNamespaceSiblings re-walked every
sibling's module and class type bindings. Module maps grow as earlier
files merge, so the walk was close to cubic in package size. A per-bucket
index now keeps, per name, the first holder (module pass, updated as maps
grow) and the first two holders (class pass), so each file walks the
package's distinct names once, with identical refs and insertion order.
Truncated files keep the bounded merge and register what they append.
S4: scope-resolution per-doubling growth 3.41 -> 2.78, end-to-end 2.0
(linear); N=2000 scope resolution ~2.8 s -> ~1.8 s. A 20k-case
randomized comparison against the old merge found no difference; graph
fingerprints identical across all languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* optimize(java-ingest-scaling): cache file-scope segments once per parse tree
buildQualifiedName climbed to the root and re-read every top-level child
for each class, which is quadratic for a file with many top-level classes.
The file-scope segments now come from a per-extractor WeakMap keyed by the
parse Tree, computed once per tree with the same logic; the ancestor-scope
walk is unchanged.
S2: per-doubling growth 2.06 -> 1.90 (sublinear), N=2000 pipeline
8.7 s -> 7.2 s; graph fingerprints identical across all languages.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): keep import-typed container elements in packages past the sibling caps
A loop or lambda element typed through a single-type import is bound by its
qualified name (`models.User`). The qualified lookup refused every dotted
spelling in a file whose same-package visibility was incomplete, so a package
past the 200-sibling injection cap or the 500-file skip lost every such
element (and every written `models.User` declaration).
- qualifiedTypeKey: when visibility is incomplete, refuse only a root that the
uncapped same-package type index holds (or when package facts are unknown).
Sibling injection binds nothing else, so the lookup is exact for any other
root.
- Add java-review-followups-large-package.test.ts: 205 and 505 members, on-demand
and `java.util.List` spellings, with and without a same-package base, exact
`User.save` pins with `Other.save` as a decoy, a same-package `List` negative,
and a same-package `models` root negative at both sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): read an import-typed element by the import's canonical name
An element written as a simple name that `import models.User` brings in is
bound by the import's canonical name, `models.User`. Qualified lookup then
re-resolved that spelling at the use site, so a same-package class `models`
captured it and the element was typed as `app.models.User`. An import names a
canonical name, and a same-package type is not in scope in an import
(JLS 7.5.1, 6.3).
- Capture records, per binding anchor, which dotted element spellings are a
single-type import's canonical name (loop and lambda elements, and declared
JDK container return elements), carried on the Java capture side channel.
- Qualified lookup takes such a spelling as the imported type's name, without
reading its root at the use site. It refuses when an enclosing class
inherits a member type of the simple name, which shadows the import
(JLS 6.4.1), and when one return type reads the same spelling both written
and imported at one anchor.
- Tests: the import-root-shadow shape (exact models/User.save for lambda,
loop and call-result elements), the written `models.User` control (member
of the same-package class models, JLS 6.5.4.1), the ambiguous Map return,
the inherited member type, and the import-root-shadow shape at 205 and 505
members.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): read inherited member-type roots as member paths; refuse unknown static on-demand owners
- A qualifier root that an enclosing class inherits as a member type now
names that member type (`models.User` in a subclass of `Base` is
`Base.models.User`, JLS 6.4.1 / 8.5) in both the receiver-typing key and
overload argument typing, through one shared reading. It still refuses
when two declarations are inherited, the member type is private or not
accessible from the use site's package, the declaring supertype is not
reached through the supertypes actually written (an external
`extends lib.Base` is not the workspace `app.Base`), or a nearer class
may inherit an unseen type of that name.
- A static on-demand import (`import static lib.Outer.*;`) now refuses the
package reading of a qualifier root unless its owner is a single
workspace type that names no supertype and declares no member type of
that name, in both readings.
- Round-2/3 tests that pinned refusal for the inherited shape now pin the
exact member-type target.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): let a static-imported field leave a Lombok annotation proven
A single-static-import may name a static member type, which shadows
lombok.*, or only a static field or method, which does not (JLS 6.4.1,
7.5.3). The file-local proof cannot tell them apart, so it now leaves
such a name uncertain instead of refusing it. The workspace proof decides
it when the imported owner is a workspace type: an accessible static
member type, declared or inherited, refuses; an owner whose whole
hierarchy is in the workspace without one proves the annotation as if
the static import were absent; an external or ambiguous owner stays
uncertain. The reconcile now runs for a file whose single-static-import
shares a used Lombok annotation name when the owner gives a definite
answer, and a static import no longer hides a same-package sibling.
- PRRT_kwDOPXS5wc64Bfrc (lombok-synthesizer.ts:275)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): type implicitly typed lambda parameters from a workspace functional interface
- An implicitly typed lambda passed as a method argument takes its parameter
types from the single abstract method of the workspace interface that the
exactly selected method declares for that argument (JLS 15.27.3, 9.9). The
parameter type is read where the interface was written. Inherited abstract
methods from workspace superinterfaces count; default, static, private and
Object methods do not. A generic interface is substituted only by a plain
class type argument. External, raw, wildcard, non-functional, ambiguous and
arity-mismatched targets leave the parameter unbound, so it still never
borrows an outer name.
- A call whose every argument is an implicitly typed lambda is decided by
potential applicability (JLS 15.12.2.1-2) when the general selector has no
evidence: the one complete-set candidate whose functional interfaces match
the lambda arities is selected.
- The JDK container callback route is unchanged.
- Bench: `unknownLambda` now expects Item.audit ("P4 workspace SAM lambda");
`nestedLambda` also expects Item.audit; a new `externalLambda` case keeps
the shadow barrier measured for a lambda passed to an absent external type.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(java): re-record the java-ingestion baseline for workspace SAM lambda cases
The corpus now expects Item.audit for a lambda passed to a workspace
functional interface and adds an external-callback case that keeps the
shadow barrier measured, so the workload, capture and target
fingerprints moved. All 413 cases per shape pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): find SAM lambda targets through on-demand imports and qualified types
- A functional interface that reaches the selected method only through a
type-import-on-demand (`import cb.*;`) was refused: Java on-demand imports
bind no names, so the scope-chain claim for it is absent. The lookup now
takes the file's on-demand imports (JLS 6.4.1, 7.5.2) when nothing else
claims the name: one workspace top-level type of an imported package, with
ambiguity, static imports, java.lang names, packages without workspace
files and inherited member types refused.
- A qualified parameter type (`cb.UserCb`, `models.User`) is read through the
method parameter's own declared type and the provider's qualified lookup.
A lambda parameter now takes the abstract method's own declared parameter
binding, read where it was written.
- The capture synthesizer moves to sam-lambda-captures.ts so the resolution
module can use the qualified-type helpers without an import cycle.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): let no variable obscure the qualifier root of a type spelling
In a type, the qualifier of `Q.Id` is a PackageOrTypeName (JLS 6.5.4.1,
6.5.5.2): only types and packages compete for `Q`, and obscuring (JLS
6.4.2) applies to expression names only. The root lookup for a qualified
declared type stopped at the first scope that owned the name, so a
parameter, field, local, lambda parameter or method named like the root
(`void accept(cb.UserCb cb)`, `void run(models.User models, ...)`) made
the spelling refuse; a field next to a member type of that name gave two
owners and refused too. The lookup now passes over scopes that own the
name only as a value and keeps only type bindings where both meet. Type
claims, imports, local classes and type parameters answer as before, and
receiver expressions keep their variable-first lookup.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): let no variable refute a JDK container element proof
A `var` element taken from a JDK container keeps its binding only if the
container's name means the JDK type where it was written. That check
looked the proof name (`java` of `java.util.List`, or an on-demand
`List`) up with a plain type-purpose claim lookup, so a field, parameter
or local named `java` or `List` refuted the proof and dropped the
binding. The name is always written in a type, where only types compete
(JLS 6.5.4.1, 6.5.5, 6.4.2), so the check now shares the type-name lookup
the qualified type bindings use: scopes that own the name only as a value
are passed over, and a type of that name still refutes the proof.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* perf(java): index overload-resolution source definitions per name, file and qualified name
Enclosing-class, inherited member-type and qualified-root lookups called
sourceDefinitions(simpleName) on every type lookup and then filtered the
whole result by file or qualified name. When many files each declare a
nested type with the same simple name (an inner In, Builder or Holder),
every lookup rescanned all of them, so scope resolution grew
quadratically: x2.96 then x4.35 per doubling on 500-2000 subclasses that
read an inherited member-type root.
Definitions are now collected once per name per resolution state and
bucketed by file and by source-qualified name. The same shape now grows
x1.58 then x1.83 per doubling with identical CALLS output.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): keep an explicitly injected constructor beside a clashing Lombok one
When a Lombok-generated constructor has the same signature as a written
one, every written constructor was dropped from Spring DI, including one
marked @Autowired or @Inject. Lombok still generates the clashing
constructor (a compile error) and never removes the written one, so the
written, explicitly marked constructor is still an injection site. Only
the generated constructor facts and the sole-constructor deduction stay
refused.
- spring-di: drop the per-constructor skip on a signature clash; the
implicit and generated paths are already gated by soleConstructor.
- Unit tests now check clash detection through hasSignatureConflict
instead of through an empty site list.
- New integration test java-review-followups-r5-spring pins the INJECTS
edges for @Autowired / @Inject under a clash, no edge from the
generated signature, no implicit edge for an unannotated clashing
constructor, and unchanged no-clash cases.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): type this and enclosing-local copies inside anonymous classes
- `this` in a method of an anonymous class body (or a bodied enum
constant) is bound to the synthesized anonymous class, so `this.own()`
selects the anonymous class's own or inherited member instead of the
enclosing type's same-named method; such bodies get no `super` binding
borrowed from the enclosing class.
- `var copy = value` inside a local or anonymous class method now keeps
the producer of an effectively final enclosing local. The copy is
refused when the source is written anywhere, when the class body
declares a variable of that name, when the body is an interface, enum,
record or static class, or when resolution cannot show that no
supertype of the class declares a field of that name (a supertype
outside the workspace may).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(java): pin UTF-16 type spelling offsets and split JDK element routes
- Type spelling: node indices from the Node tree-sitter binding are UTF-16
string offsets on both the direct and the chunked parse path, so
javaTypeText slices node.text in the same unit. Pin exact spellings for
non-ASCII (two- and four-byte UTF-8) names before annotations and
comments, and add an end-to-end case where such spellings resolve calls
to the qualified member type and not to a same-package decoy.
- JDK element routes past the sibling cap: Java keeps one CALLS edge per
caller and target, so give the forEach lambda and the enhanced-for loop
their own methods; each must resolve to User.save on its own, and both
must stay unresolved when List is shadowed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(java): accept every JLS Java identifier in written type spellings
Java letters include all Unicode letters, letter numbers, currency symbols
and connectors; identifier parts add digits, combining marks and format
characters (JLS 3.8). Several Java-provider patterns used ASCII `\w`, or
`\p{L}\p{N}`, so a non-ASCII name was refused or cut at its first
non-ASCII character:
- declared-type-captures: imports, written element types and their tokens
(for-each and forEach over List<Äußer.Ünïcödé> stayed unresolved).
- overload-resolution: the type-use annotation strip removed only the ASCII
prefix of `@Nötig`, so `Äußer.@Nötig Ünïcödé` read as
`Äußer.ötigÜnïcödé` and could select the wrong overload; names with a
combining mark made the whole overload set undecidable.
- sam-lambda-types: functional interfaces and type arguments with a
combining mark left the lambda parameter untyped.
- lombok-workspace-proof: a base class with a non-ASCII name was
unresolvable, so a field-level @Getter was refused; the annotation scan
read a truncated name.
- lombok-constructors: the imported head of a constructor signature was the
ASCII prefix (`Straße` expanded through `import q.Stra;`).
All of them now use one definition in type-spelling.ts (start
[\p{L}\p{Nl}\p{Sc}\p{Pc}], part adds \p{Nd}\p{Mn}\p{Mc}\p{Cf}), built into
anchored, linear patterns. ASCII behaviour is unchanged.
Also correct the preprocessSource comment: with this binding's string
input, startIndex/endIndex and columns are UTF-16 code units, not UTF-8
byte offsets.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(scope-resolution): type a dotted array element through the qualified lookup
An index step peels a container's declared spelling to its element and
looked the element up by plain class binding. A qualified element
(`Outer.Inner[]` -> `Outer.Inner`) is a type written where the container was
declared, so it now goes through the provider's qualifiedTypeLookupSpelling
exactly as a declared type of that spelling does: from the declaration's
scope and lookup position, with the hook's refusal final and no simple-name
retry. Undotted elements, providers without the hook, and hooks that supply
no qualified spelling keep the unchanged plain lookup (Go, Kotlin and C++
hooks return no spelling for a dotted element, so only Java changes).
Java `values[0].save()` over `Outer.Inner[]` parameters, locals, fields and
`this.field` now resolve to the nested type rather than nothing, imported and
fully qualified roots resolve to their package, an inherited member type
shadows a same-package top-level one, and an ambiguous inherited root stays
unresolved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* perf(java): read no extra parents for anonymous-class this and enclosing-local copies
The anonymous-body check in the receiver binding read the class body's
parent twice per method, and each anonymous-class method walked its own
type identity. The walk now recognizes the anonymous host from the node
it came from, and each host's identity is computed once per file and
shared with its declaration. The enclosing-local alias records each type
body's owner on the way down instead of reading it back.
The Java member-read cost test is back to 40 reads; a new case pins a
fixed number of reads per anonymous class at two file sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(bench): re-baseline Java scope-capture for anonymous-class this bindings
Methods in an anonymous class or enum-constant body now bind `this` to
that body's JLS binary class (Outer$1, M3$1, N$1$1) instead of the
enclosing class. Diffing
|
||
|---|---|---|
| .. | ||
| fixtures | ||
| __init__.py | ||
| bench_fixtures.py | ||
| conftest.py | ||
| test_baseline_guidance.py | ||
| test_ce_plugin_runtime.py | ||
| test_check_test_execution.py | ||
| test_cli_shim.py | ||
| test_comparator_reuse.py | ||
| test_cost_diagnostics.py | ||
| test_diagnostic_trial.py | ||
| test_ec2_workflows.py | ||
| test_errors.py | ||
| test_evolution_runner.py | ||
| test_evolution_runner_ready.py | ||
| test_evolve.py | ||
| test_mcp_bridge.py | ||
| test_mcp_loading_report.py | ||
| test_mcp_tool_loading.py | ||
| test_measure_evolution_cost.py | ||
| test_mock_provider.py | ||
| test_model_gateway.py | ||
| test_offline_session_integration.py | ||
| test_offline_sweep_integration.py | ||
| test_oracle_assets.py | ||
| test_parse_run_id.py | ||
| test_pr_evaluation.py | ||
| test_process_control.py | ||
| test_promotion_apply.py | ||
| test_property_based.py | ||
| test_proposal_evaluation.py | ||
| test_proposer_sandbox.py | ||
| test_provider_usage.py | ||
| test_provider_usage_capture.py | ||
| test_release_build.py | ||
| test_release_controls.py | ||
| test_release_evaluation_smoke.py | ||
| test_release_evidence.py | ||
| test_release_gate.py | ||
| test_release_preflight.py | ||
| test_release_report.py | ||
| test_retrieval_diagnostics.py | ||
| test_reuse_round_trip.py | ||
| test_review_corpus.py | ||
| test_review_scoring.py | ||
| test_runner_hardening.py | ||
| test_sanitized_graph.py | ||
| test_session_diagnostics.py | ||
| test_session_progress.py | ||
| test_sweep_finalization.py | ||
| test_task_assets.py | ||
| test_tool_scripts.py | ||
| test_trial_dependency_binding.py | ||
| test_trial_measurement_fixes.py | ||
| test_workflow_bench.py | ||
| test_workflow_bench_evolution.py | ||
| test_workflow_bench_sessions.py | ||