Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] 20 year old bug ? :)
  • From: "Sankaran, Srikanth" <srikanth.sankaran@xxxxxxxxxxxxx>
  • Date: Fri, 19 Apr 2024 09:40:35 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=advantest.com; dmarc=pass action=none header.from=advantest.com; dkim=pass header.d=advantest.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=iITllQkTrenK3KmABPd0eT0xvlkQqYitXOF+D8iJ9d4=; b=cJF115avNUK15WTMtIxZ60eVq2YD9LXH/QYjUVMdjnWdwbQOUf7VKUAeT4xhDMo5FeLVEXJ9Iv+nP7tWJx8b6VL02UIeb9wp/ZfknrCofmh4shgaBk35NzGKIWh8pzjTDrqy6r5n5QO7VOwEZSVFe/WVzBNvDiyq73IMvxBsmFLFZ/QJh9Neak+1ziV3w5mbk6rl8pXJWQWXayfl0xfTedHWKKlF/oIToeR1Q3i+UjFM+9Vs8Lxe5F29d8Y7DJVqty1xMbkmyauZ/2WU8yohbB65qDzNT4gh8ktQiiu1FFOU9IbYFnosKJj7G9NY5j3Z5Slp/s4ONfO8c6huoSvAkw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PpF94+9VnT132j94LxKiK+Xnzpx3J0IM2/RZPgtfHDO5FFaT5749+UmkZDTX3cr4Io7i+IFxkOUOz3KwosGGAedJaLdc3EYqMTvqxtrMBXmoiht0Fix1K39ueqhKVZNzJrm4cpcAJZxEyuNsLkFVhfFRPrn/DiwB66j+Tr1oA4/LXIHTE5EepFw+eQfZrgH3LoDnEH7PBgnbvMo89C0e5F1OIai8a+dK0lhV9GbL0lX+sRzLep1jcxNxnZYVfVyryeYBiwuJRE83fS28XtfOkYuHKk0jq84aZsHcXdk/SaW0AvMwgxd3/ko54pwG6GeHyJa66yd8Q07Qp9IWU+1JxA==
  • 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: AdqSIIHOeOlPJW3yTuKZ+yh00EJJfgAGNzcAAAD03/A=
  • Thread-topic: [jdt-dev] 20 year old bug ? :)

Thanks, Aaron, I will follow up. (This is just the starting point, there are a few other places that need to be touched too.)

 

As far as encoding names the way you have done it, I think the level of indirection exists for a reason. In general some symbols may be present only in some versions of class libraries for example. (Though perhaps not in this case)

 

Thanks

Srikanth

 

From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Aaron Digulla via jdt-dev
Sent: Friday, April 19, 2024 2:40 PM
To: jdt-dev@xxxxxxxxxxx
Cc: Aaron Digulla <digulla@xxxxxxxx>
Subject: Re: [jdt-dev] 20 year old bug ? :)

 

CAUTION: This email was sent from outside of Advantest.

 

Am 19.04.24 um 08:14 schrieb Sankaran, Srikanth via jdt-dev:

org.eclipse.jdt.internal.compiler.lookup.TypeConstants.JAVA_LANG_NOCLASSDEFERROR reads:

 

char[][] JAVA_LANG_NOCLASSDEFERROR = {JAVA, LANG, "NoClassDefError".toCharArray()}; //$NON-NLS-1$

 

I think it should be: “NoClassDefFoundError” A 20 years old bug!

How about this fix (would also get rid of the comment)?

char[][] JAVA_LANG_NOCLASSDEFERROR = {JAVA, LANG, NoClassDefFoundError.class.getSimpleName().toCharArray()};

Regards,

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits." 
http://blog.pdark.de/

Back to the top