[infinispan-issues] [JBoss JIRA] (ISPN-6754) Get rid of feature and deprecation warnings when compiling Hotrod server
Vojtech Juranek (JIRA)
issues at jboss.org
Fri Jun 3 03:56:00 EDT 2016
[ https://issues.jboss.org/browse/ISPN-6754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vojtech Juranek updated ISPN-6754:
----------------------------------
Status: Open (was: New)
> Get rid of feature and deprecation warnings when compiling Hotrod server
> ------------------------------------------------------------------------
>
> Key: ISPN-6754
> URL: https://issues.jboss.org/browse/ISPN-6754
> Project: Infinispan
> Issue Type: Task
> Components: Server
> Reporter: Vojtech Juranek
> Assignee: Vojtech Juranek
> Priority: Minor
>
> there's couple of feature and deprecation warning when compiling Hotrod server:
> {noformat}
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/iteration/IterationManager.scala:120: warning: inferred existential type Option[org.infinispan.filter.KeyValueFilterConverterFactory[_$2,_$3,_$4]] forSome { type _$2; type _$3; type _$4 }, which cannot be expressed by wildcards, should be enabled
> [INFO] by making the implicit value scala.language.existentials visible.
> [INFO] This can be achieved by adding the import clause 'import scala.language.existentials'
> [INFO] or by setting the compiler option -language:existentials.
> [INFO] See the Scala docs for value scala.language.existentials for a discussion
> [INFO] why the feature should be explicitly enabled.
> [INFO] Option(filterConverterFactoryMap.get(name)).orElse(throw log.missingKeyValueFilterConverterFactory(name))
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/iteration/IterationManager.scala:123: warning: inferred existential type Some[(org.infinispan.filter.KeyValueFilterConverter[_$5,_$6,_$7], Boolean)] forSome { type _$5; type _$6; type _$7 }, which cannot be expressed by wildcards, should be enabled
> [INFO] by making the implicit value scala.language.existentials visible.
> [INFO] factory match {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/package.scala:21: warning: implicit conversion method asScalaFunction should be enabled
> [INFO] by making the implicit value scala.language.implicitConversions visible.
> [INFO] This can be achieved by adding the import clause 'import scala.language.implicitConversions'
> [INFO] or by setting the compiler option -language:implicitConversions.
> [INFO] See the Scala docs for value scala.language.implicitConversions for a discussion
> [INFO] why the feature should be explicitly enabled.
> [INFO] implicit def asScalaFunction[T, U](f: J8Function[T, U]): T => U = new Function[T, U] {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/package.scala:25: warning: implicit conversion method asJavaFunction should be enabled
> [INFO] by making the implicit value scala.language.implicitConversions visible.
> [INFO] implicit def asJavaFunction[T, U](f: T => U): J8Function[T, U] = new J8Function[T, U] {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/package.scala:29: warning: implicit conversion method asJavaConsumer should be enabled
> [INFO] by making the implicit value scala.language.implicitConversions visible.
> [INFO] implicit def asJavaConsumer[T](f: T => Unit): J8Consumer[T] = new J8Consumer[T] {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/package.scala:33: warning: implicit conversion method asJavaBiConsumer should be enabled
> [INFO] by making the implicit value scala.language.implicitConversions visible.
> [INFO] implicit def asJavaBiConsumer[T, U](f: (T, U) => Unit): J8BiConsumer[T, U] = new J8BiConsumer[T, U] {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/package.scala:37: warning: implicit conversion method asJavaRunnable should be enabled
> [INFO] by making the implicit value scala.language.implicitConversions visible.
> [INFO] implicit def asJavaRunnable(f: () => Unit): Runnable = new Runnable {
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/AbstractTopologyAwareEncoder1x.scala:24: warning: method numVirtualNodes in class HashConfiguration is deprecated: see corresponding Javadoc for more information.
> [INFO] cfg.clustering().hash().numVirtualNodes())
> [INFO] ^
> [WARNING] /home/vjuranek/ws-idea/infinispan/server/hotrod/src/main/scala/org/infinispan/server/hotrod/AbstractTopologyAwareEncoder1x.scala:125: warning: method getHashFunction in trait ConsistentHash is deprecated: see corresponding Javadoc for more information.
> [INFO] val normalizedHash = ch.getHashFunction.hash(i) & Integer.MAX_VALUE
> [INFO] ^
> [WARNING] 9 warnings found
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the infinispan-issues
mailing list