Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

26. May 2012, 10:28:35 pm
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)A word about standard annotations
Pages: [1]
Print
Author Topic: A word about standard annotations  (Read 1765 times)
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« on: 28. May 2007, 11:16:27 am »

When I applied the new HIAL API to the Xith codebase, I took great advantage of the @Override annotations, that are placed at all overridden methods inside of xith and xith-tk. You should configure your Eclipse to report a warning for missing annotations. It really helps. Anywhere, where the super method of an overridden and annotated method doesn't exist, a compile error is reported. So the IDE helps you to find all the places, where to change something and helps you to not miss one.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #1 on: 29. May 2007, 03:23:28 pm »

And that's where you see the use of an "override" keyword, as in a Java-compatible language named "hellIdontrememberthename". Smiley The only problem with @Override annotations is that they are not mandatory (and they are only 1.5+),
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #2 on: 29. May 2007, 06:13:22 pm »

The only problem with @Override annotations is that they are not mandatory...

That's a problem for many parts of the fully backwards compatible Java language specifications. One day, they should cut off support for older versions.

...(and they are only 1.5+),

Well, that they're only 1.5+ is not a real problem. Who ever wants to use something older than 1.5 is not very wise or is forced to use it Wink.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #3 on: 30. May 2007, 06:11:08 am »

...(and they are only 1.5+),

Well, that they're only 1.5+ is not a real problem. Who ever wants to use something older than 1.5 is not very wise or is forced to use it Wink.
Well, compatibility issues, as always. (Apple power...)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 30. May 2007, 09:16:30 am »

Well, compatibility issues, as always. (Apple power...)

I remember the discussions about Xith3D moving to Java-1.5 or not. And there was the argument, that there was not Java-1.5 support on Mac. But there actually was. So Xith moved to 1.5. So this is definitely not a problem.

Well, as far as I know, there's no Java-1.6 for Mac (Am I wrong?). But 1.5 exists.

Marvin
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #5 on: 30. May 2007, 05:08:26 pm »

Hehe Smiley Then you forgot everyone still on 1.4.2 (there are a lot) or worse, on M$ JRE 1.1
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #6 on: 30. May 2007, 05:31:54 pm »

Hehe Smiley Then you forgot everyone still on 1.4.2 (there are a lot) or worse, on M$ JRE 1.1

Blame on M$! Stone them! Hunt them down!... Well, We don't have to and won't care about anybody using 1.1. And I guess, it is a half-compatible M$-Java-implementation, which is anyways meaningless.

If you want progress in an API and want to improve it, you sometimes need to abandon support for older versions. And I think, Sun should abandon the "direct" support for JREs older than 1.4 and once older than 1.5.

Marvin
Logged
jeepndesert
Becoming dependent
**
Offline Offline

Posts: 103


jeep_in_desert@yahoo.com
View Profile WWW
« Reply #7 on: 01. June 2007, 06:58:50 am »

hmm, i'm requiring Java 1.6 in the jws for Mac users...oops...
Logged
'n ddrylliog
Moderator
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #8 on: 01. June 2007, 03:19:21 pm »

Hehe Smiley Then you forgot everyone still on 1.4.2 (there are a lot) or worse, on M$ JRE 1.1

Blame on M$! Stone them! Hunt them down!... Well, We don't have to and won't care about anybody using 1.1. And I guess, it is a half-compatible M$-Java-implementation, which is anyways meaningless.

If you want progress in an API and want to improve it, you sometimes need to abandon support for older versions. And I think, Sun should abandon the "direct" support for JREs older than 1.4 and once older than 1.5.
Myeah, but users want support, too. About the M$ implementation, you're kinda generous with M$s when you say "half-compatible" Smiley maybe "quart-compatible" is even too much.
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #9 on: 01. June 2007, 03:43:51 pm »

About the M$ implementation, you're kinda generous with M$s when you say "half-compatible" Smiley maybe "quart-compatible" is even too much.

Yeah
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic