OpenJ9 compatibility for SCL compiler's naming of ontology modules 67/2367/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sat, 27 Oct 2018 14:42:14 +0000 (17:42 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sat, 27 Oct 2018 14:42:14 +0000 (17:42 +0300)
commit1624c696a48a2ca88c50545bcd57daf2ea51104c
treec81388699cf085b39973980d941c720e20943589
parent644b6dee7bb798f69a40a7c78142f9649f0d9b76
OpenJ9 compatibility for SCL compiler's naming of ontology modules

The problem was these errors coming from ClassLoader.defineClassImpl
when the generated class name contained two '/' characters in a row:

java.lang.ClassFormatError: JVMCFRE068 class name is invalid;
class=scl/http_58_//Projects/Development_37_20Project/Model/SCLMain,
offset=0

More escaping was added to fix this.

gitlab #159

Change-Id: I01f8b17b1230cbf06051848b23c805e8d2d61c96
bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/utils/JavaNamingPolicy.java