atom feed8 messages in com.googlegroups.google-web-toolkit-contributorsRe: finding GWT version
FromSent OnAttachments
prem...@gmail.comJul 29, 2007 11:43 pm 
Miroslav PokornyJul 30, 2007 6:25 am 
mPJul 30, 2007 3:55 pm 
John TamplinJul 30, 2007 4:02 pm 
Scott BlumJul 30, 2007 5:27 pm 
John TamplinJul 30, 2007 6:10 pm 
Reinier ZwitserlootJul 31, 2007 4:44 pm 
prem...@gmail.comJul 31, 2007 10:27 pm 
Subject:Re: finding GWT version
From:prem...@gmail.com (prem@gmail.com)
Date:Jul 31, 2007 10:27:59 pm
List:com.googlegroups.google-web-toolkit-contributors

If you load the class and fetch the field through reflection, won't you get the correct version that was inserted by the ant build of the distro?

It worked ! I did get the correct version using reflection.

Thanks Prem

On Aug 1, 4:44 am, Reinier Zwitserloot <rein@gmail.com> wrote:

reflection is the most readable way to get at that data in a guaranteed not-inlined way.

There are others but they require an intricate knowledge of the java language specs - pure hackery, in other words.

On Jul 31, 3:10 am, "John Tamplin" <j.@google.com> wrote:

On 7/30/07, Scott Blum <sco@google.com> wrote:

Just be sure you don't grab a compile-time constant. ;)

If you load the class and fetch the field through reflection, won't you get the correct version that was inserted by the ant build of the distro?