rasyahadlinugraha / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Recursive call in DatePicker #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the class: org.odlabs.wiquery.ui.datepicker.DatePicker

The following method creates an recursive loop

public DatePicker<T> setBeforeShowEvent(JsScopeUiEvent beforeShow) {
this.setBeforeShowEvent(beforeShow);
return this;
}

The code should be setting the options BeforeShowEvent

public DatePicker<T> setBeforeShowEvent(JsScopeUiEvent beforeShow) {
this.options.setBeforeShowEvent(beforeShow);
return this;
}

What steps will reproduce the problem?
1. Call this method:
org.odlabs.wiquery.ui.datepicker.DatePicker.setBeforeShowEvent(JsScopeUiEvent)

What is the expected output? What do you see instead?
Stack overflow from recursive call
java.lang.StackOverflowError at
org.odlabs.wiquery.ui.datepicker.DatePicker.setBeforeShowEvent(DatePicker.java:8
85)

What version of the product are you using? On what operating system?
wiquery 1.0.3

Original issue reported on code.google.com by james%so...@gtempaccount.com on 16 Nov 2010 at 5:37

GoogleCodeExporter commented 9 years ago
This is fixed on 1.1.x branch. Can't you upgrade? 

Original comment by reier...@gmail.com on 16 Nov 2010 at 2:38

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/wiquery/source/detail?r=558

Original comment by reier...@gmail.com on 17 Nov 2010 at 5:11