Yes, it can be depend on jar names and so on. But if you see my explanation above now i get the same.
And looks like found the problem. As we suppose problem is with class loading.
I set breakpoint in line 998 in org.eclipse.jdt.internal.compiler.SourceElementParser (from webapps/java-ca/WEB-INF/lib/codenvy-jdt-core-repack-1.5.0.jar)
and see that we have two different classloader and class from child classloader try modify class from parent classloader.
(file:/home/roman/java/projects/wso2/cloud-dev-studio/assembly/org.wso2.developerstudio.distribution.assembly/target/wso2-developer-studio-linux64/webapps/java-ca/WEB-INF/lib/codenvy-jdt-core-repack-1.5.0.jar <no signer certificates>)
WebappClassLoader
context: /java-ca
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@5cfab5b1
<no principals>
java.security.Permissions@bc28afe (
("java.io.FilePermission" "/home/roman/java/projects/wso2/cloud-dev-studio/assembly/org.wso2.developerstudio.distribution.assembly/target/wso2-developer-studio-linux64/webapps/java-ca/WEB-INF/lib/codenvy-jdt-core-repack-1.5.0.jar" "read")
)
Second:
ProtectionDomain (file:/home/roman/java/projects/wso2/cloud-dev-studio/assembly/org.wso2.developerstudio.distribution.assembly/target/wso2-developer-studio-linux64/lib/ecj-3.7.2.jar <no signer certificates>)
sun.misc.Launcher$AppClassLoader@5cfab5b1
<no principals>
java.security.Permissions@4e4bf46a (
("java.lang.RuntimePermission" "exitVM")
("java.io.FilePermission" "/home/roman/java/projects/wso2/cloud-dev-studio/assembly/org.wso2.developerstudio.distribution.assembly/target/wso2-developer-studio-linux64/lib/ecj-3.7.2.jar" "read")
)
SourceElementNotifier.class load from ecj-3.7.2.jar but same class exist in odenvy-jdt-core-repack-1.5.0.jar.
Hope you understand that i try explain. :)
P.S. I don't have solutions for now only indicate the problem.