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

Fix #2442: Deprecate @JSExportNamed. #2509

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Jul 6, 2016

No description provided.

| ^
|newSource1.scala:4: warning: class JSExportNamed in package annotation is deprecated: Use @JSExport with an explicit option bag instead. See the Scaladoc for more details.
| @JSExportNamed
| ^
Copy link
Member Author

Choose a reason for hiding this comment

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

The duplicate warning is due to a weird interaction with PreJSExports, which creates an export bridge with the same annotation. Apparently deprecation warnings are handled later in the pipeline, and so the deprecation is reported twice.

TBH, I don't care ^^

@sjrd
Copy link
Member Author

sjrd commented Jul 6, 2016

Review by @nicolasstucki

@nicolasstucki
Copy link
Contributor

LGTM

@scala-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):

https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3262/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/4242/
Test FAILed.

@nicolasstucki
Copy link
Contributor

You got some new fatal warnings

@sjrd sjrd force-pushed the deprecate-jsexportnamed branch from 1749acb to 58050c7 Compare July 7, 2016 09:54
@sjrd sjrd changed the title Fix #2442: Deprecated @JSExportNamed. Fix #2442: Deprecate @JSExportNamed. Jul 7, 2016
@sjrd
Copy link
Member Author

sjrd commented Jul 7, 2016

Updated.

"""
@JSExportAll
class A {
@JSExportNamed("apply")
@JSExport("foo")
def apply(): Int = 1
}
""" hasWarns
""" containsWarns
"""
|newSource1.scala:7: warning: Member cannot be exported to function application. It is available under the name apply instead. Add @JSExport("apply") to silence this warning. This will be enforced in 1.0.
| def apply(): Int = 1
Copy link
Member Author

Choose a reason for hiding this comment

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

This part changed since the last review.

@scala-jenkins
Copy link

Refer to this link for build results (access rights to CI server needed):

https://scala-webapps.epfl.ch/jenkins/job/scalajs-pr/3265/
https://scala-webapps.epfl.ch/jenkins/job/scalajs-matrix-build/4246/
Test PASSed.

@nicolasstucki
Copy link
Contributor

LGTM

@nicolasstucki nicolasstucki merged commit f122577 into scala-js:master Jul 8, 2016
@sjrd sjrd deleted the deprecate-jsexportnamed branch July 13, 2016 09:23
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.

None yet

3 participants