On Fri, 22 Aug 2025 16:23:48 GMT, Vicente Romero <[email protected]> wrote:

>> Before this fix only strict fields were readable in the prologue phase. The 
>> proposed fix should allow any instance fields of identity classes to be 
>> readable in the prologue phase. This implies changes in flow analysis as 
>> before we were only tracking final and strict fields. There is also some 
>> "cooperation" needed in the code to detect cases when reading a field is not 
>> allowed in the prologue phase. For example some methods in Resolve don't 
>> have all the needed information at the moment they are dealing with some 
>> ASTs and part of the processing needs to be done in Attr
>> 
>> TIA
>> 
>> This PR is a remake of https://github.com/openjdk/valhalla/pull/1490
>
> Vicente Romero has updated the pull request with a new target base due to a 
> merge or a rebase. The pull request now contains 17 commits:
> 
>  - fixing bugs: new test cases brought in with latest merge are not accepted
>  - merge with lworld
>  - refactorings
>  - another bug fix
>  - bug fix
>  - merge with lworld
>  - renaming methods in LocalProxyVarGen
>  - more changes
>  - refactoring
>  - test changes
>  - ... and 7 more: 
> https://git.openjdk.org/valhalla/compare/62e90b5d...0eb81681

src/jdk.compiler/share/classes/com/sun/tools/javac/comp/LocalProxyVarsGen.java 
line 137:

> 135:                     .filter(t -> t.hasTag(VARDEF))
> 136:                     .map(t -> (JCVariableDecl)t)
> 137:                     .filter(vd -> (vd.sym.isStrict() || 
> vd.sym.isFinal()) && !vd.sym.isStatic())

semantic change

-------------

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/1523#discussion_r2294208686

Reply via email to