- 
    Enhancement 
- 
    Resolution: Won't Fix
- 
     P4 P4
- 
    None
- 
    1.4.2, 5.0, 6
- 
        generic, x86
- 
        generic, linux, windows_2000, windows_xp
                    Name: rmT116609			Date: 08/13/2003
A DESCRIPTION OF THE REQUEST :
There is an intensive discussion about adding operator overloading to the java language
Please also see:
http://developer.java.sun.com/developer/bugParade/bugs/4087427.html
JUSTIFICATION :
This post is made to give the people the chance to discuss and vote.
(Incident Review ID: 199033)
======================================================================
Name: rmT116609 Date: 08/12/2004
A DESCRIPTION OF THE REQUEST :
Even though there's a sort of JVM operator overloading (see toString or the == in enum), this language feature is still missing as a general language extension.
JUSTIFICATION :
Operator overloading can be avoided using functions, of course, but there are cases where the code become more readable, simpler and self-documenting.
I do know all the pros and cons about this, but as I heard similar things for some of the new great improvement on the way with 1.5, I don't see why the operator overloading has been left apart.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The behaviour would be much like the normal c++ behaviour.
ACTUAL -
No behaviour can be described as it's a non permitted syntax expression.
---------- BEGIN SOURCE ----------
public class MultiTierApp {
...
}
public class Tier1 implements Tier {
}
public class Tier2 implements Tier {
}
MultiTierApp mta = (new Tier1) + (new Tier2);
---------- END SOURCE ----------
(Review ID: 296755)
======================================================================
            
A DESCRIPTION OF THE REQUEST :
There is an intensive discussion about adding operator overloading to the java language
Please also see:
http://developer.java.sun.com/developer/bugParade/bugs/4087427.html
JUSTIFICATION :
This post is made to give the people the chance to discuss and vote.
(Incident Review ID: 199033)
======================================================================
Name: rmT116609 Date: 08/12/2004
A DESCRIPTION OF THE REQUEST :
Even though there's a sort of JVM operator overloading (see toString or the == in enum), this language feature is still missing as a general language extension.
JUSTIFICATION :
Operator overloading can be avoided using functions, of course, but there are cases where the code become more readable, simpler and self-documenting.
I do know all the pros and cons about this, but as I heard similar things for some of the new great improvement on the way with 1.5, I don't see why the operator overloading has been left apart.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The behaviour would be much like the normal c++ behaviour.
ACTUAL -
No behaviour can be described as it's a non permitted syntax expression.
---------- BEGIN SOURCE ----------
public class MultiTierApp {
...
}
public class Tier1 implements Tier {
}
public class Tier2 implements Tier {
}
MultiTierApp mta = (new Tier1) + (new Tier2);
---------- END SOURCE ----------
(Review ID: 296755)
======================================================================
- duplicates
- 
                    JDK-6349553 Badly need operator overloading or at least dedicated vector/matrix operators -           
- Closed
 
-         
- relates to
- 
                    JDK-6454574 (coll) Support object comparison by identity -           
- Open
 
-         
- 
                    JDK-4909261 RFE: built-in support for listener registration and event firing -           
- Closed
 
-