Is there a list of forbidden characters in back-ti...
# announcements
y
Is there a list of forbidden characters in back-ticked method names ? (And if there is way to circumvent them, as I would like to put a
/
in it)
c
Anything that cannot be put into a Java bytecode modifier.
c
Yes, there is, see the JVM spec. https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2 You won't be able to use
/
c
You could probably use similar UTF characters though. 😉
c
You could probably use similar UTF characters though.
http://mindprod.com/jgloss/unmainnaming.html
y
Thanks.... Well using UTF-8 char is not a terrible option on this case as it's a test method (so won't be called manually)... (But I won't do it, there is an annotation for display name which will do the job)
c
I figured it's for a test. Glad you worked it out.