Closed
Bug 419940
Opened 18 years ago
Closed 18 years ago
Incorrect JavaAdapter generation for base class that overrides an abstract method
Categories
(Rhino Graveyard :: Compiler, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
1.7R1
People
(Reporter: norrisboyd, Assigned: norrisboyd)
Details
Attachments
(2 files)
|
2.22 KB,
patch
|
Details | Diff | Splinter Review | |
|
984 bytes,
text/plain
|
Details |
If you define a class as so:
public abstract class BaseFoo {
public abstract String doSomething();
}
public class Foo extends BaseFoo {
public String doSomething() {
return "hello world";
}
}
and you do in Rhino:
var aFoo = new JavaAdapter(Packages.com.google.Foo, {});
what is the return of:
aFoo.doSomething()
The answer is... the string 'undefined'!
Should be "hello world".
| Assignee | ||
Comment 1•18 years ago
|
||
Proposed patch
| Assignee | ||
Comment 2•18 years ago
|
||
| Assignee | ||
Comment 3•18 years ago
|
||
Fixed:
Checking in testsrc/org/mozilla/javascript/tests/Bug419940Test.java;
/cvsroot/mozilla/js/rhino/testsrc/org/mozilla/javascript/tests/Bug419940Test.jav
a,v <-- Bug419940Test.java
initial revision: 1.1
done
Checking in src/org/mozilla/javascript/JavaAdapter.java;
/cvsroot/mozilla/js/rhino/src/org/mozilla/javascript/JavaAdapter.java,v <-- Ja
vaAdapter.java
new revision: 1.112; previous revision: 1.111
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•