Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove most of $ constructors in favour of $(Object) #336

Closed
wants to merge 1 commit into from

Conversation

manolo
Copy link
Contributor

@manolo manolo commented Jan 13, 2015

Avoid java8 disambiguation. Fixes #335

}
if (o instanceof JavaScriptObject) {
return $((JavaScriptObject) o);
return $(((Function) o).getElement());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this method doesn't exist anymore, aren't you introducing a loop here ? Idem for the other call of $() inside this method

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok I got it... Scratch my comment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm concerned about this change for the future. It will be easy to screw up this part of code and introduce a loop. Do we have test for each that covers each possibility ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will take a look to all possibilities. The problem is that this seems not fix the issue of the user, I cannot reproduce his problem though. Let see if I reach a solution to have the issue fixed. Then we can focus on reviewing this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyway I would not release a version which fails with java8, although new gquery 2.0 is though for java8

@manolo manolo closed this Jan 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The method $(Element) is ambiguous for the type GQuery
2 participants