[
https://jira.jboss.org/browse/ISPN-390?page=com.atlassian.jira.plugin.sys...
]
Galder Zamarreño commented on ISPN-390:
---------------------------------------
Manik, how did you verify that the issue was fixed?
I've tried:
@Marshallable(externalizer = classOf[CacheValue.Externalizer], id =
Ids.SERVER_CACHE_VALUE)
class CacheValue(val data: Array[Byte], val version: Long) {
And IntelliJ complains with:
error: annotation argument needs to be a constant; found: Ids.SERVER_CACHE_VALUE
@Marshallable(externalizer = classOf[CacheValue.Externalizer], id =
Ids.SERVER_CACHE_VALUE)
I've then run maven and it compiles fine. I've checked IntelliJ and is indeed
compiling with Scala 2.8.1...
Upgrade to a Scala version that fixes java constant reference issue
-------------------------------------------------------------------
Key: ISPN-390
URL:
https://jira.jboss.org/browse/ISPN-390
Project: Infinispan
Issue Type: Thirdparty Change
Components: Cache Server
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 4.2.0.CR2
Currently Scala has issues reusing static constant from .java files. Example:
// TODO: putting Ids.HOTROD_CACHE_KEY fails compilation in 2.8 -
https://lampsvn.epfl.ch/trac/scala/ticket/2764
@Marshallable(externalizer = classOf[CacheKeyExternalizer], id = 57)
final class CacheKey(val data: Array[Byte]) {
...
The root cause appears to be
https://lampsvn.epfl.ch/trac/scala/ticket/2764
This task aims to upgrade Scala to a version that fixes this issue.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira