@SuppressWarnings("unchecked") not working

H

HK

According to the docs, I thought I could get rid of those

warning: [unchecked] unchecked conversion

at well defined places. I am using build 1.5.0_04-b05 which
seems to be the most recent one. I am using

@SuppressWarnings("unchecked")
public class Bla<T> {
Bla<T>[] b = new Bla[10];
}

but still get the warning when compiling with -Xlint:unchecked.

Any ideas how to get it to work? According to
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6223153
it should work.

Harald.
 
T

Thomas Weidenfeller

HK said:
Where can I get this b29? On the official download page
I only find build 1.5.0_04-b05.

Mustang is Java 1.6, not 1.5. A preliminary version should be available
somewhere from https://mustang.dev.java.net/

Whether using such an early alpha version is a good idea is another
question.

/Thomas
 

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
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top