Merge pull request #190 from jboner/wip-1561-no-slash-in-actorpath-√
Adding validation for ActorPath, to disallow slashes.
This commit is contained in:
commit
97e32ee875
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ final case class RootActorPath(address: Address, name: String = "/") extends Act
|
|||
}
|
||||
|
||||
final class ChildActorPath(val parent: ActorPath, val name: String) extends ActorPath {
|
||||
if (name.indexOf('/') != -1) throw new IllegalArgumentException("/ is a path separator and is not legal in ActorPath names: [%s]" format name)
|
||||
|
||||
def address: Address = root.address
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue