Vojtech Juranek created ISPN-6882:
-------------------------------------
Summary: Scala warning during REST server compilation
Key: ISPN-6882
URL:
https://issues.jboss.org/browse/ISPN-6882
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 9.0.0.Alpha3
Reporter: Vojtech Juranek
Assignee: Vojtech Juranek
Priority: Trivial
During REST server compilation, Scala compiler produces couple of warngings:
{noformat}
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/RestCacheManager.scala:59:
warning: abstract type V in type pattern
org.infinispan.container.entries.InternalCacheEntry[String,V] is unchecked since it is
eliminated by erasure
[INFO] case ice: InternalCacheEntry[String, V] => ice
[INFO] ^
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/RestCacheManager.scala:61:
warning: abstract type V in type pattern
org.infinispan.container.entries.MVCCEntry[String,V] is unchecked since it is eliminated
by erasure
[INFO] case mvcc: MVCCEntry[String, V] => cache.getCacheEntry(key) // FIXME:
horrible re-get to be fixed by ISPN-3460
[INFO] ^
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/Server.scala:101:
warning: abstract type V in type pattern
org.infinispan.container.entries.InternalCacheEntry[String,V] is unchecked since it is
eliminated by erasure
[INFO] case ice: InternalCacheEntry[String, V] => {
[INFO] ^
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/Server.scala:312:
warning: abstract type V in type pattern
org.infinispan.container.entries.InternalCacheEntry[String,V] is unchecked since it is
eliminated by erasure
[INFO] case ice: InternalCacheEntry[String, V] => {
[INFO] ^
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/Server.scala:360:
warning: abstract type V in type pattern
org.infinispan.container.entries.InternalCacheEntry[String,V] is unchecked since it is
eliminated by erasure
[INFO] case ice: InternalCacheEntry[String, V] => {
[INFO] ^
[WARNING]
/home/vjuranek/ws-idea/infinispan/server/rest/src/main/scala/org/infinispan/rest/Server.scala:445:
warning: abstract type V in type pattern
org.infinispan.container.entries.InternalCacheEntry[String,V] is unchecked since it is
eliminated by erasure
[INFO] case ice: InternalCacheEntry[String, V] => {
[INFO] ^
[WARNING] 6 warnings found
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)