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

new scala imports breaks use of Math #7613

Closed
scottdraves opened this issue Jun 30, 2018 · 1 comment
Closed

new scala imports breaks use of Math #7613

scottdraves opened this issue Jun 30, 2018 · 1 comment

Comments

@scottdraves
Copy link
Contributor

SparkUI.ipynb now gives:

<console>:106: error: missing argument list for method Math in object MIMEContainer
Unapplied methods are only converted to functions when a function type is expected.
You can make this conversion explicit by writing `Math _` or `Math(_)` instead of `Math`.
       val x = Math.random()

@jpallas

@scottdraves scottdraves changed the title new scala imports breaks Math new scala imports breaks use of Math Jun 30, 2018
@jpallas
Copy link
Contributor

jpallas commented Jun 30, 2018

Conflict between java.lang.Math and MIMEContainer.Math. The name Math is problematic. But using Scala's random instead of Java's would be the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants