score:0
Accepted answer
solved by myself. the problem is not function literal, but type "long". if i use "java.lang.long" in that situation, that works. for generic type, aspectj expects "type",not primitive. in scala, numeric type values like int, long, even boolean are equivalent to java primitive type
Source: stackoverflow.com
Related Query
- AspectJ can't work on Scala function literal?
- Multiline function literal as arguments in Scala
- Is it possible to write a repeated-parameter function through function literal in scala ?
- scala: Why does scala allow implementing a function literal with Map/List/etc
- scala generic sort function doesn't work with arrays
- `=>` in scala function literal
- spark read doesn't work inside Scala UDF function
- Scala correct syntax to use underscore("_") in function literal with tuple
- `return` in a scala function literal
- scala function literal and methods and underscore
- Placeholder in Scala function doesnt work with mutable Maps
- Getting map function with custom CanBuildFrom and Builder to work in Scala
- Scala - difference between function definition and function literal with no arguments
- Function literal in Scala using val
- How to make a function to work with a collection of any Numeric type in Scala
- Process work in parallel with non-threadsafe function in scala
- scala and akka function literal ? need help in understanding the language of functional pattern
- Scala recursion function that removes number from list needs work
- confused about scala function literal
- Partially applied function doesn't work in Scala
- Variable definition in Scala function literal
- Scala 2.12.0: output of assigning a function literal to a value
- Make aspectj work with scala model
- Scala promise does not work if I encapsulate it in a commodity function
- scala function literal confusion
- Scala default function literal parameter
- Why the inner function used in below scala code , cant we write it without the inner function
- Test method that takes function literal in scala
- Im new to Scala and want to know how this function work
- Difference between method and function in Scala
More Query from same tag
- How to build a multimap from a list of tuples in Scala?
- ConcurrentMap#putIfAbsent with Scala Int's
- not found: object akka?
- Spark Scala Error: Exception in thread "main" java.lang.ClassNotFoundException
- Gatling Load Test - XML file as feed possible?
- Create a new task that runs a program
- My Intellij worksheet does not print out the number sequence defined in Thread.run, but sbt does
- Explanation of singleton objects in Scala
- Scala/Spark: row of numbers to boolean mask
- SBT jsDependency file name trouble
- Difference between ScalaCheck Arbitrary[T] and Scalacheck Gen[T]
- How to create a DataSet from RDD using Case Class with composed columns
- Integrating Sonar, Jacoco, Gradle, ScalaTest with Junit, Java
- Infering generic type parameters in Scala
- Repeating dependent parsers with Scala/SBT parser combinators
- DBIOAction cleanUp or asTry do not lead to internal execution
- How to create vertx router using Scala
- How does JPA infer data type of attributes
- The questions about Spark dataframe operations
- What is encouraged style in comparing two numbers in Scala?
- Mock a Spark RDD in the unit tests
- Calling main methods in other objects in Scala
- scala value is not a member of type parameter
- Casting a Scala Object into a Generic type?
- Calling overloaded method of Kotlin in Scala
- Convert week to date spark
- Is it possible to create a linear progression in ScalaCheck generator
- Akka Http map response on rejection discarded
- optimizing redundant call on immutable objects
- Play 2.1: Logger doesn't work