Closed Bug 142100 Opened 22 years ago Closed 21 years ago

rhino cannot get indexed properties if two getters are defined

Categories

(Rhino Graveyard :: Core, enhancement)

x86
Windows 2000
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 218163

People

(Reporter: frank.luo, Assigned: norrisboyd)

Details

According to Java specs, a JavaBean indexed properties can be defined by two 
sets of getters/setters. For example, a Java Bean with *ONE* property 
of "counts" can be defined as:

public class Foo()
{
  public int getCounts(int i);
  public void setCounts(int i, int count);
  public int[] getCounts();
  public void setCounts(int counts[]);
}

However, rhino is not able to find this property. For example, the following 
code will not work:

js> foo.counts[0] = 1;
Changing the severity to enhancement as it is somethong that was never supported
and is not required by LiveConnect specs.
Severity: blocker → enhancement
In reality it is the bug 218163 that is a duplicate of this one but it was
218163 that got fixed.

With that fix "foo.counts[0] = 1;" works as expected.



*** This bug has been marked as a duplicate of 218163 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Marking Verified -
Status: RESOLVED → VERIFIED
Trageting as resolved against 1.5R5
Target Milestone: --- → 1.5R5
You need to log in before you can comment on or make changes to this bug.