hg: amber/amber: dont generate initialization code if the canonical constructor doesn't completes normally, additional tests

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Sep 12 20:17:07 UTC 2019


Vicente is right - there are many places where we save Flow results into 
the AST - another big one is lambda expressions, where 
'canCompleteNormally' affects lambda compatibility against a target-type.

Maurizio

On 12/09/2019 21:00, Vicente Romero wrote:
> I just did what we are already doing in similar cases like JCCase etc, 
> they also have a `completesNormally` field,
>
> Vicente
>
> On 9/10/19 7:21 PM, Jonathan Gibbons wrote:
>> Vicente,
>>
>> The edit to JCTree is questionable for storing semantic info in the 
>> AST node. Is there no other way/place to record the information?
>>
>> -- Jon
>>
>> On 9/10/19 4:03 PM, vicente.romero at oracle.com wrote:
>>> Changeset: 362ffdb9571b
>>> Author:    vromero
>>> Date:      2019-09-10 19:02 -0400
>>> URL: https://hg.openjdk.java.net/amber/amber/rev/362ffdb9571b
>>>
>>> dont generate initialization code if the canonical constructor 
>>> doesn't completes normally, additional tests
>>>
>>> ! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Flow.java
>>> ! src/jdk.compiler/share/classes/com/sun/tools/javac/tree/JCTree.java
>>> ! test/langtools/tools/javac/records/RecordCompilationTests.java
>>>
>


More information about the amber-dev mailing list