Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] bug in NaiveASTFlattener
  • From: Sarika Sinha <sarika.sinha@xxxxxxxxxx>
  • Date: Mon, 17 Jan 2022 09:49:19 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in.ibm.com; dmarc=pass action=none header.from=in.ibm.com; dkim=pass header.d=in.ibm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fHyDVSl0+O0TH2Upg4Lw2raQVrbIJRyAJ7hxkKUksVU=; b=mULDYAKqq4RGsY1uYv/2gqSWWp50/RsXc5QnKfZ9qFJjgzyq6dht5v7j7fzWbWDdhBArQFo5U/x9m3eTJ2uv3QycZ3BQXadkw5rdPUkbVnO6hP9+j1Gyv1FIWwFx4WmpxQ9CY6h+5BhJh1WoreG9Ds1cyObSRTAFx6oztTrdvQEQcOpjMbU9hmH4G6MUwEUOr6Oum3XOc41xxLw1XbFSTHh0pqx47EFad95UTo2SuCvlGkms/aOTZhNs8wt/CeaDj/rsQRFtqTRm/EsBpC2CCDM0/vF6AbjXdkPi++m2p9Sy7d2+3shlhizsEor3OBcz4QURu0MwCgNqnHP99s99hA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G+tz8vkZ7UAP1NS/2dT80giZtDqmJrQcAYY67RJRUegq3fUY5109uCNu5tPGid5kLhg4Zm1nyhv6cLmMUX2TrcFhwwu/RCYOsWpxPUH5le6GkkDSSVfkSeeNHDIjBHnjcL3UW6w35RDBco6458hPoTBhsKZV80zbwdHHFOoOwxe66rRiPToV8kh+lESb3VTMHXrqSXSdpMiSW4LSHyqHyOXH4BL13aqvtanZXn93/R63GCrIL1Lr3QxBsCo3cd0ufiuuCbEKmECSjEgE1yEx5bkrAK5hewCbWjbCKBgbO//2XoTAY0ZhSgU7NDj6mM+49iKmd/zbfA19a6LnPn0qMA==
  • Delivered-to: jdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/jdt-dev/>
  • List-help: <mailto:jdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/jdt-dev>, <mailto:jdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHYC4d/QH2Xs8a4v02UcCDURVis3A==
  • Thread-topic: [jdt-dev] bug in NaiveASTFlattener

Hi,

“Qualifier” her qualifies the “ThisExpression” and it is not the name of local variable. For example:

public class test1 {

             

              private int value = 1;

              public void printValue() {

                  System.out.println("this.value=" + this.value);

                  System.out.println("Qualified This.this.value=" + test1.this.value);

                }

 

}

 

Here in “test1.this” “test1” is the class name and is the qualifier for “this”.

I hope it is clear.

 

Thanks & Regards,

Sarika

 

From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> on behalf of Aruforce <xm952060690@xxxxxxxxx>
Reply to: "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Date: Monday, 17 January 2022 at 3:00 PM
To: "jdt-dev@xxxxxxxxxxx" <jdt-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] [jdt-dev] bug in NaiveASTFlattener

 

method : 

public boolean visit(ThisExpression node)

 

buffer should append 'this' and dot  at first 

one case 

ThisExpression thisExpression = ast.newThisExpression();
thisExpression.setQualifier(ast.newName("name"));
System.out.println(thisExpression.toString());

output  is 'name.this' , expected is 'this.name'

 


Back to the top