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

Supress the compiler warning about reflectiveCalls #113

Merged
merged 1 commit into from Jul 23, 2014
Merged

Supress the compiler warning about reflectiveCalls #113

merged 1 commit into from Jul 23, 2014

Conversation

ghost
Copy link

@ghost ghost commented Jul 23, 2014

When I try to access the DB.INSTALL namespace it gives me

[warn] ...DatomicMigrate.scala:34: reflective access of structural type member value INSTALL should be   enabled
[warn] by making the implicit value scala.language.reflectiveCalls visible.
[warn] This can be achieved by adding the import clause 'import scala.language.reflectiveCalls'
[warn] or by setting the compiler option -language:reflectiveCalls.
[warn] See the Scala docs for value scala.language.reflectiveCalls for a discussion
[warn] why the feature should be explicitly enabled.
[warn]     db.datoms(Database.AVET, Namespace.DB.INSTALL / "attribute").foreach { datomic =>
[warn]                                           ^

When I try to access the DB.INSTALL namespace it gives me

[warn] ...DatomicMigrate.scala:34: reflective access of structural type member value INSTALL should be enabled
[warn] by making the implicit value scala.language.reflectiveCalls visible.
[warn] This can be achieved by adding the import clause 'import scala.language.reflectiveCalls'
[warn] or by setting the compiler option -language:reflectiveCalls.
[warn] See the Scala docs for value scala.language.reflectiveCalls for a discussion
[warn] why the feature should be explicitly enabled.
[warn]     db.datoms(Database.AVET, Namespace.DB.INSTALL / "attribute").foreach { datomic =>
[warn]                                           ^

use an object instead of allowing reflective calls

sdjlfjs
dwhjames added a commit that referenced this pull request Jul 23, 2014
Supress the compiler warning about reflectiveCalls
@dwhjames dwhjames merged commit a97726a into dwhjames:develop Jul 23, 2014
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.

1 participant