JDK-5099780 : Add [], -, +, *, / operators to core classes as appropriate
  • Type: Enhancement
  • Component: specification
  • Sub-Component: language
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-09
  • Updated: 2006-11-17
  • Resolved: 2006-11-17
Related Reports
Duplicate :  
Description
Name: rmT116609			Date: 09/09/2004


A DESCRIPTION OF THE REQUEST :
Add the [] operator to String to dereference a character, and the -, +, *, / operators to Number but continue to disallow operator overloading for user-classes.

JUSTIFICATION :
Improvement in ease of use of the language without the inherit risks of allowing ad-hoc operator overloading.
(Incident Review ID: 302380) 
======================================================================