repost: 2008 -- dependencies on obfuscated classes in openapi jars?

(Originally attempted to post via NNTP, which presumably is read-only or moderated or requires authentication or something. My apologies if this becomes a duplicate.)

It looks like some of the classes in the openapi jar rely on obfuscated classes:

12:32 <pcl@tmonk 31 foo>$ grep -r com/intellij/psi/b/b .
Binary file ./com/intellij/psi/jsp/JspAction.class matches
Binary file ./com/intellij/psi/jsp/JspAttribute.class matches
Binary file ./com/intellij/psi/jsp/JspDirective.class matches
Binary file ./com/intellij/psi/PsiClass.class matches
Binary file ./com/intellij/psi/util/PsiUtil.class matches
Binary file ./com/intellij/psi/xml/XmlAttributeDecl.class matches
Binary file ./com/intellij/psi/xml/XmlDocument.class matches
Binary file ./com/intellij/psi/xml/XmlElementDecl.class matches
Binary file ./com/intellij/psi/xml/XmlMarkupDecl.class matches
Binary file ./com/intellij/psi/xml/XmlTag.class matches

Is this intentional? I'm not able to compile a class that contains a reference to a PsiClass. I get an error like so:

12:44 <pcl@tmonk 31 solarmetric>$ rjavac Plugin.java
Plugin.java:104: cannot access com.intellij.psi.b.b
file com/intellij/psi/b/b.class not found
if (!psiClasses[j].isInterface ())
^
1 error


I'm currently working around the problem by including lib/idea.jar in my classpath, but this is obviously not ideal, as I'd rather check in a 1.4 meg openapi.jar file into my repository than a 31 meg idea.jar file.

-Patrick

1 comment
Comment actions Permalink

We're currently working on separating whole OpenApi into a separate module so no illegal dependencies could occur. This
in turn will allow to open the sources, not just generated stubs. Please be patient.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.