jdk 1.5 syntax error : new loop syntax

When I edit demo file with new loop's syntax,and Marker Bar appears error. I like this loop's writting!

 tempList=new ArrayList();
           tempList.add("one");
           tempList.add("two");
          for(String e : tempList)
           {
                   System.out.println(e);
           }
       }
}
]]>

10 comments
Comment actions Permalink

some syntax of jdk 1.5 has errors on Marker bar too:
Autoboxing,Enhanced for loop ...
The sample code of 1.5 url:
http://zamples.com/JspExplorer/samples/samplesJDK1_5.html

0
Comment actions Permalink

linux_china wrote:

When I edit demo file with new loop's syntax,and Marker Bar appears error.
I like this loop's writting!


Dear linux_china,

thank you very much for pointing our attention to this problem.
We like this loop's writing too.

I am pretty sure however, that if you have browsed archives of this
newsgroup just a little bit longer before sharing with us your unique
experience, you'd have seen numerous announcements of full syntax for 1.5
being unsupported in IDEA 4.0 and no less numerous
promises to add support for this syntax as 1.5 matures and release
IDEA updates supporting it.

Comraderly,
Dmitry

 public class Jdk15Demo
> {
>        public static void main(String[] args)
>        {
>            ArrayList tempList=new ArrayList();
>            tempList.add("one");
>            tempList.add("two");
>           for(String e : tempList)
>            {
>                    System.out.println(e);
>            }
>        }
> }
> ]]>


--
Dmitry Lomov
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink


It seems a little strange to support generics in 4.0 and not the other features of 1.5.

My 2p


Dear linux_china,

thank you very much for pointing our attention to
this problem.
We like this loop's writing too.

I am pretty sure however, that if you have browsed
archives of this
newsgroup just a little bit longer before sharing
with us your unique
experience, you'd have seen numerous announcements of
full syntax for 1.5
being unsupported in IDEA 4.0 and no less numerous
promises to add support for this syntax as 1.5
matures and release
IDEA updates supporting it.

Comraderly,
Dmitry



0
Comment actions Permalink

It seems a little strange to support generics in 4.0 and not the other features of 1.5.


Please search the forum, this was discussed multiple times.

Tom

0
Comment actions Permalink

If you think so than Generics support can be disabled too.

Generics available cause it's reference implemenation present for some time and can be used. Other features appeared only last two month.

TIA,
Dmitry

0
Comment actions Permalink

Ain't Dimtry in good humor today? _

0
Comment actions Permalink

Yes, it looks like he is already working on IDEA 4.1 :)

Tom

0
Comment actions Permalink

Actually, the other features have been available in prerelease versions as well, at least as far back as June of 2003, when I posted my comment to the following bug report:

http://www.intellij.net/tracker/idea/viewSCR?publicId=12159

Based on my conversations with Sun engineers at that time, it seemed quite unlikely that these features would change much if at all. And, indeed, they haven't.

It's great that IntelliJ has been proactive on getting the generics features implemented quickly. Still, I must admit that I share the other poster here's frustration with how slowly the other JDK 1.5 language changes have been to be implemented, and at the low priority that IntelliJ seems to have put on this effort. (Even though they're much, much easier to implement than generics!) Personally, I think it's much more important to have early and complete JDK 1.5 support than, say, AspectJ support. (Although I wouldn't mind both.)

JDK 1.5 is already way overdue, and many of us are fairly frustrated at its slow release schedule already.
Many of us want to use the JDK 1.5 features as soon as possible, so we can avoid having to retrofit code written between now and whenever the JDK is finally released.

I really hope that we won't have to wait until a full-blown release of IntelliJ 4.1 to see these features. I'd like to see them placed at a high priority as compared to other bugs and feature requests, so that they can show up in an early-access release of IDEA soon.

0
Comment actions Permalink

And just to stir things up, the latest CodeGuide release (both 6.1 stable release and recent Amethyst builds) supports the full JDK 1.5 syntax.

On the other hand, that other IDE with the name of a natural phenomenom still doesn't have a clue (in release builds, at least) about any 1.5 syntax (not even generics).

0

Please sign in to leave a comment.