Generics in production code?
Hi all!
As you probably noticed, we - after much debate - plan to support JSR014
"Generics" in Aurora. And you can expect at least the parser in a build or
two :).
However, our motto here is "to eat one's dog food" - that is, we would like
to use Generics in IDEA (and, as a matter of fact, are looking forward to
do so :) ).
The current beta implementation of Generics (version 1.3) can be used "on
top" of JDK 1.4.1 - that is, compile with generics supporting javac, and
run with JDK 1.4.1. You can even enjoy generic collections - a special
generic stubs are provided, against which your code should be compiled. And
we were actually able to compile IDEA with it and use it afterwards :)
(no, the next build is compiled with conventional javac of 1.4.1_something).
However, latest statements from Sun are somewhat vague on the point of
whether this happy state of events will continue past a revised version of
JSR014, due in the end of May. That is, it may well be that code using
Generics will not run on older JVMs.
So, the question is - have you tried to use Generics in production code?
Do you consider doing so before 1.5 is out? If you do so, how are you going
to cope with changes from Sun?
Your comments are very welcome.
Cheers,
Dmitry
--
Dmitry Lomov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
请先登录再写评论。
On Wed, 14 May 2003 16:46:10 +0400, Valentin Kipiatkov wrote:
That would be good - however, I think also having an intention action
would be nice. ( also adding it to the code inspection would be good ).
--
...turn to the light - don't be frightened by the shadows it creates,
...turn to the light - turning away could be a terrible mistake
...dream theater - the great debate
Now THAT I would DEFINITELY use! Even if it's not right now, but when things do become 'official', then I can use idea to quicly blast me into Generics and go from there. YES! +1
R
Dmitry Lomov <dsl@intellij.com> wrote:
Cool, some people will certainly have fun searching for the cause of
this problem. Maybe you can add a check for that in the Code Inspection
or even a warning in the editor for that. Do you want me to add a
request in the tracker?
Dirk Dittert
Dirk Dittert wrote:
>> Yes, this is correct. See Draft Spec for more details and answers to
>> whys.
I do not think there is a need for separate request, as such warning is
issued by javac, hence we will implement respective highlighting in editor.
Friendly,
Dmitry
--
Dmitry Lomov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"