Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » HELP: Eclipse with JSR14
HELP: Eclipse with JSR14 [message #43368] Thu, 29 May 2003 18:40 Go to next message
Eclipse UserFriend
Originally posted by: budimlic.myrealbox.com

Hi everyone!

I am relatively new to this forum, and I have an urgent question:

Is there a (relatively) painless way to integrate JSR14 (the new prototype
from Sun for the 1.5 that uses generics, enums e.t.c.) into Eclipse?

I am fully aware that the full functionality (hovering, hierarchy browsing,
probably even syntax checking) would require a lot of
work to get it to work properly.

I am ONLY looking for simple functionality: compiling the project and
debugging it.

Thanks a lot,

Zoran.
Re: HELP: Eclipse with JSR14 [message #44263 is a reply to message #43368] Fri, 30 May 2003 12:00 Go to previous messageGo to next message
Stefan Matthias Aust is currently offline Stefan Matthias AustFriend
Messages: 68
Registered: July 2009
Member
Zoran Budimlic wrote:

> I am ONLY looking for simple functionality: compiling the project and
> debugging it.

You could switch off the automatic building in Eclipse and use an ANT
build script. You'd probably need to override some ANT defaults to
point it to the right compiler. Or you could setup a simple external
tool launcher for the new javac(.bat) script - works okay for me.

Debugging shouldn't be a problem, if you remember to put the new classes
into the library path. The generated bytecode is backward compatible
AFAIK. However, because Sun decided, to implement autoboxing of ints
using a new static method Integer.valueOf(int) instead of simply calling
"new Integer(...)", the generated code doesn't work with a normal JDK
1.4.x anymore. There's a good reason for the new method, but as long as
it's not implemented the way the description suggests, it's an annoyance.


bye
--
Stefan Matthias Aust
www.3plus4software.de // Inter Deum Et Diabolum Semper Musica Est
Re: HELP: Eclipse with JSR14 [message #45919 is a reply to message #44263] Sat, 31 May 2003 18:54 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
> Debugging shouldn't be a problem, if you remember to put the new classes
> into the library path. The generated bytecode is backward compatible
> AFAIK. However, because Sun decided, to implement autoboxing of ints
> using a new static method Integer.valueOf(int) instead of simply calling
> "new Integer(...)", the generated code doesn't work with a normal JDK
> 1.4.x anymore. There's a good reason for the new method, but as long as
> it's not implemented the way the description suggests, it's an annoyance.

now i am curious.
Whats the good reason for this new method?

and one thing else (i didn't test it yet and the download page is under maintenence now at java.sun)
what happens with this:

Integer a = null;
int b = a;

what do i get?

johan
Re: Eclipse with JSR14 [message #45949 is a reply to message #43368] Sat, 31 May 2003 18:55 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
it is in the project plan of the next release

So it will be there in one of the milestone/integration builds
But i think this will not make it for a while.

johan


"Zoran Budimlic" <budimlic@myrealbox.com> wrote in message news:bb5k7g$dsk$1@rogue.oti.com...
> Hi everyone!
>
> I am relatively new to this forum, and I have an urgent question:
>
> Is there a (relatively) painless way to integrate JSR14 (the new prototype
> from Sun for the 1.5 that uses generics, enums e.t.c.) into Eclipse?
>
> I am fully aware that the full functionality (hovering, hierarchy browsing,
> probably even syntax checking) would require a lot of
> work to get it to work properly.
>
> I am ONLY looking for simple functionality: compiling the project and
> debugging it.
>
> Thanks a lot,
>
> Zoran.
>
>
Re: HELP: Eclipse with JSR14 [message #46093 is a reply to message #45919] Sun, 01 June 2003 07:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stelian.iancu.gmx.net

Johan Compagner wrote:

>> Debugging shouldn't be a problem, if you remember to put the new classes
>> into the library path. The generated bytecode is backward compatible
>> AFAIK. However, because Sun decided, to implement autoboxing of ints
>> using a new static method Integer.valueOf(int) instead of simply calling
>> "new Integer(...)", the generated code doesn't work with a normal JDK
>> 1.4.x anymore. There's a good reason for the new method, but as long as
>> it's not implemented the way the description suggests, it's an annoyance.
>
> now i am curious.
> Whats the good reason for this new method?
>
> and one thing else (i didn't test it yet and the download page is under
> maintenence now at java.sun) what happens with this:
>
> Integer a = null;
> int b = a;
>
> what do i get?
>
> johan

Well, AFAIK there were some debates whether a NPE should be thrown or the
value for b should be 0. But I don't know what's the final decision. There
was an interview with Joshua Bloch (don't remember the URL though) where he
talked a bit about all this new stuff in Tiger.

--
Stelian Iancu
Linux registered user 287835

Be different. Think.
Re: HELP: Eclipse with JSR14 [message #46151 is a reply to message #46093] Sun, 01 June 2003 12:19 Go to previous messageGo to next message
Johan Compagner is currently offline Johan CompagnerFriend
Messages: 148
Registered: July 2009
Senior Member
> > Integer a = null;
> > int b = a;
> >
> > what do i get?
> >
> > johan
>
> Well, AFAIK there were some debates whether a NPE should be thrown or the
> value for b should be 0. But I don't know what's the final decision. There
> was an interview with Joshua Bloch (don't remember the URL though) where he
> talked a bit about all this new stuff in Tiger.


ahh they should throw a nullpointer

because

Integer a = null;
int b = a;
a = b;

suddenly gives me a Integer(0) in a??

so that state/value is changing with pure assignments?
not logical.

johan
Re: Eclipse with JSR14 [message #47096 is a reply to message #45949] Tue, 03 June 2003 08:44 Go to previous message
Philippe Mulet is currently offline Philippe MuletFriend
Messages: 229
Registered: July 2009
Senior Member
Indeed, JDT/Core is busy investigating support for Java-like languages, new
code formatter, new syntax error messages, new index infrastructure and
JavaModel cleanup... generics and other 1.5 features are queued behind
these.

"Johan Compagner" <jcompagner@j-com.nl> wrote in message
news:bbatrq$q1l$1@rogue.oti.com...
> it is in the project plan of the next release
>
> So it will be there in one of the milestone/integration builds
> But i think this will not make it for a while.
>
> johan
>
>
> "Zoran Budimlic" <budimlic@myrealbox.com> wrote in message
news:bb5k7g$dsk$1@rogue.oti.com...
> > Hi everyone!
> >
> > I am relatively new to this forum, and I have an urgent question:
> >
> > Is there a (relatively) painless way to integrate JSR14 (the new
prototype
> > from Sun for the 1.5 that uses generics, enums e.t.c.) into Eclipse?
> >
> > I am fully aware that the full functionality (hovering, hierarchy
browsing,
> > probably even syntax checking) would require a lot of
> > work to get it to work properly.
> >
> > I am ONLY looking for simple functionality: compiling the project and
> > debugging it.
> >
> > Thanks a lot,
> >
> > Zoran.
> >
> >
>
>
Previous Topic:Ant and External Tool Builders
Next Topic:Name of a PackageFragmentRoot
Goto Forum:
  


Current Time: Fri Dec 27 03:13:39 GMT 2024

Powered by FUDForum. Page generated in 0.24401 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top