J2SE 1.5 Beta

W

Wolfgang Jeltsch

Hello,

I read somewhere on java.sun.com that the beta release of J2SE 1.5 shall be
available at the end of 2003. My questions are:
1. Is it already available for download?
2. Is it downloadable for everyone or only for people with an Sun Online
Account?
3. How stable is it/will it be?
4. Does it contain a JavaDoc which works well with the new language
extensions?

I hope for your help and thank you in advance.

Wolfgang
 
G

Guest

Hello,

I read somewhere on java.sun.com that the beta release of J2SE 1.5 shall
be available at the end of 2003.

Most of your questions can be answered by reading
http://www.java.sun.com/j2se/1.5/
My questions are:
1. Is it already available for download?
No.

2. Is it downloadable for everyone or only for people with an Sun
Online Account?

It sounds like the same rules apply as other early access software (a free
registration is required)
3. How stable is it/will it be?

Beta Release. Need I say more? There's already a compiler for generics
available for download. Try it out.
4. Does it contain a JavaDoc which works well with the new language
extensions?

Beta software is subject to change, as is the documentation.

Mele Kalikimaka,
La'ie Techie
 
W

Wolfgang Jeltsch

L??ie Techie said:
There's already a compiler for generics available for download. Try it
out.

I did so meanwhile. I downloaded version 2.2. Well, Sun always talks of a
prototype supporting generics while the newer versions are implementing
JSR014 (generics) and also JSR201 (enumerations, autoboxing, enhanced for
loops and static import). That's why I didn't try this prototype out
earlier.

The problem is that it seems to not support autoboxing although the download
page under java.sun.com claims that it does so. If I compile the
autoboxing example from the Joshua Bloch chat about the new language
features, I get the following message:
Freq.java:7: operator + cannot be applied to java.lang.Integer,int
m.put(word, m.get(word) + 1);
^
1 error
The source code is this:
import java.util.*;

public class Freq {
public static void main(String args[]) {
Map<String, Integer> m = new TreeMap<String, Integer>();
for (String word : args)
m.put(word, m.get(word) + 1);
System.out.println(m);
}
}
Has anybody an explanation for this behaviour? The file Test.java from
adding_generics-2_2-ea.zip uses autoboxing only in conjunction with
varargs.

Thank you for any help.

Wolfgang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top