Add test for access to a method with the same name as a field with
Context.FEATURE_ENHANCED_JAVA_ACCESS enabled. git-svn-id: svn://10.0.0.236/trunk@256162 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -99,6 +99,13 @@ public class JavaAcessibilityTest extends TestCase {
|
||||
assertEquals("4 true", result);
|
||||
}
|
||||
|
||||
public void testOverloadFunctionRegression() {
|
||||
Object result = runScript(
|
||||
"(new java.util.GregorianCalendar()).set(3,4);'success';");
|
||||
assertEquals("success", result);
|
||||
}
|
||||
|
||||
|
||||
private Object runScript(final String scriptSourceText) {
|
||||
return this.contextFactory.call(new ContextAction() {
|
||||
public Object run(Context context) {
|
||||
|
||||
Reference in New Issue
Block a user