Board index » jbuilder » just how does JB2005 compile generics w/o JDK 5?

just how does JB2005 compile generics w/o JDK 5?


2004-10-13 06:57:25 AM
jbuilder6
i understand that JDK 5 is not installed with JBuilder. At least every
java.exe i found in the install folder bears the version 1.4.2
i know that a java.exe with version 1.4.2 is able to RUN 5.0 class files
because generics are erased at compile time.
but where is the JDK that compiles these things? it DOES work. but i
don't understand why. where is javac.exe version 5? i can't seem to find
it...
any hints are highly appreciated,
patrick
 
 

Re:just how does JB2005 compile generics w/o JDK 5?

Patrick Zesar wrote:
Quote
i understand that JDK 5 is not installed with JBuilder. At least every
java.exe i found in the install folder bears the version 1.4.2

i know that a java.exe with version 1.4.2 is able to RUN 5.0 class files
because generics are erased at compile time.

but where is the JDK that compiles these things? it DOES work. but i
don't understand why. where is javac.exe version 5? i can't seem to find
it...

any hints are highly appreciated,
patrick
Where is javac.exe version 5?
It wasn't even released until a week ago. The Beta JDK licenses
SPECIFICALLY forbid you (or Borland in this case) to redistribute the
Beta JDKs. So it could not be included with JBuilder 2005 which was
released in mid September.
So go download it from Sun, install it, and then configure it as a new
JDK for Jbuilder (Tools | Configure | JDKs).
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
www.google.ca/advanced_group_search
Other Newsgroup Searches:
www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
www.visi.com/~gyles19/fom-serve/cache/1.html
 

Re:just how does JB2005 compile generics w/o JDK 5?

Lori M Olson [TeamB] wrote:
Quote
Where is javac.exe version 5?

It wasn't even released until a week ago. The Beta JDK licenses
SPECIFICALLY forbid you (or Borland in this case) to redistribute the
Beta JDKs. So it could not be included with JBuilder 2005 which was
released in mid September.

So go download it from Sun, install it, and then configure it as a new
JDK for Jbuilder (Tools | Configure | JDKs).

yeah i know all that.
but i don't have a JDK 5 (or any beta JDK) installed on my system.
nevertheless, my simple testprogram with generics is working. and if i
use wrong generic code (for testing purpose) it recognizes the errors,
like javac v5 would.
how can jbuilder compile this program without a compiler of version 5?
that's the thing i don't quite get.
 

{smallsort}

Re:just how does JB2005 compile generics w/o JDK 5?

patrick zesar wrote:
Quote
how can jbuilder compile this program without a compiler of version 5?
that's the thing i don't quite get.
If you look in JBuilder's lib directory you'll see a javac.jar. That
contains a variant of the JDK 1.5 javac. That's what JBuilder uses to
build your program.
--
Gillmer J. Derge [TeamB]
 

Re:just how does JB2005 compile generics w/o JDK 5?

Gillmer J. Derge [TeamB] wrote:
Quote
patrick zesar wrote:

>how can jbuilder compile this program without a compiler of version 5?
>that's the thing i don't quite get.


If you look in JBuilder's lib directory you'll see a javac.jar. That
contains a variant of the JDK 1.5 javac. That's what JBuilder uses to
build your program.
ah - thank you.
that was what i suspected - i myself have been working with a reference
implementation of generics from sun that was just loaded "onto" a 1.4
javac some time ago.
thank you again for clearing this up,
patrick