StubbingIdeaJar 

HOME INDEX SEARCH GO  

 <<O>>  Difference Topic StubbingIdeaJar (r1.5 - 20 Jan 2004 - AlexeyEfimov)
Added:
>
>


Compiled all requered classes into one jar, see classRewriter.jar in attachments (287KB). Using: java -jar classRewriter.jar

-- AlexeyEfimov - 20 Jan 2004

Added:
>
>

%META:FILEATTACHMENT{name="classRewriter.jar" attr="" comment="Compiled convertor wich requeres BCEL 5.1 included" date="1074629511" path="D:\TOOLS\java\classRewriter.jar" size="287532" user="AlexeyEfimov" version="1.1"}%


 <<O>>  Difference Topic StubbingIdeaJar (r1.4 - 24 Dec 2003 - PaulMclachlan)
Changed:
<
<

%META:FILEATTACHMENT{name="CompileStubGenerator.java" attr="" comment="" date="1071195889" path="CompileStubGenerator.java" size="6196" user="PaulMclachlan" version="1.2"}%

>
>


Dave found a bug with this not stubbing PsiJavaToken?.EQ properly - because I wasn't storing constants in the stub classes (and these constants are inlined by javac in classes compiled against the stubs), so I've attached a 'version 2' that fixes this problem.

-- PaulMclachlan - 23 Dec 2003 %META:FILEATTACHMENT{name="CompileStubGenerator.java" attr="" comment="Version 2" date="1072225000" path="CompileStubGenerator.java" size="7478" user="PaulMclachlan" version="1.3"}%


 <<O>>  Difference Topic StubbingIdeaJar (r1.3 - 15 Dec 2003 - DaveKriewall)
Added:
>
>

%META:FILEATTACHMENT{name="openapi-stub-996.jar" attr="" comment="OpenAPI build 996 stub" date="1071520270" path="C:\IntelliJ-IDEA-996\lib\hotfix\openapi-stub-996.jar" size="179868" user="DaveKriewall" version="1.1"}% %META:FILEATTACHMENT{name="idea-stub-996.jar" attr="" comment="idea.jar build 996 stub" date="1071520593" path="C:\IntelliJ-IDEA-996\lib\hotfix\idea-stub-996.jar" size="6210639" user="DaveKriewall" version="1.1"}%


 <<O>>  Difference Topic StubbingIdeaJar (r1.2 - 13 Dec 2003 - AlexeyEfimov)
Added:
>
>

Thanks Paul, it work. I just find that problems only in VirtualFile?, and i put jar. You can use for fix 992:

  • In %IDEA_HOME%/lib directory create "hotfixes" directory.
  • Put openapi-vfs-992.jar into %IDEA_HOME%/lib/hotfixes
  • Add to your module project library "hotfixes" with it jar, and be sure that it above openapi.jar or idea.jar in project libraries order.
  • Also link this file in ANT script, if needed.

-- AlexeyEfimov - 13 Dec 2003

Added:
>
>

%META:FILEATTACHMENT{name="openapi-vfs-992.jar" attr="" comment="992 VirtualFile? hotfix" date="1071328219" path="D:\TOOLS\idea\Aurora\lib\hotfixes\openapi-vfs-992.jar" size="1541" user="AlexeyEfimov" version="1.1"}%


 <<O>>  Difference Topic StubbingIdeaJar (r1.1 - 12 Dec 2003 - PaulMclachlan)
Added:
>
>

%META:TOPICINFO{author="PaulMclachlan" date="1071195180" format="1.0" version="1.1"}% Re: http://www.intellij.net/forums/thread.jsp?forum=23&thread=58913&tstart=0&trange=15

A few people (myself included) have noticed that the latest EAP (922) idea.jar isn't readable from the EA generics javac compiler (with bad signature) errors.

I have a workaround. Basically, I create a new idea.jar that contains classes with the exact same signatures, but without whatever generics stuff is screwing up javac. It's enough to compile against (but not run against).

A little program is attached that you can use to stub idea.jar. (It wouldn't let me upload the 6 meg pre-stubbed idea.jar, sorry)

You'll need BCEL first, from http://jakarta.apache.org/site/binindex.cgi

Compile it & run like this:

java -cp classes;C:\bcel-5.1\bcel-5.1.jar CompileStubGenerator idea.jar stubs.jar

Then put stubs.jar into your project instead of idea.jar like you normally do. Magic. smile

-- PaulMclachlan - 12 Dec 2003

%META:FILEATTACHMENT{name="CompileStubGenerator.java" attr="" comment="" date="1071195889" path="CompileStubGenerator.java" size="6196" user="PaulMclachlan" version="1.2"}%


View | Diffs | r1.5 | > | r1.4 | > | r1.3 | More

e d i t a t t a c h r e f - b y d i f f s
Ideas,requests,problems regarding this site? Send feedback.
Copyright @ 2000-2003 by the contribution authors. All material on this collaboration tool is the property of the contributing authors.

Revision r1.1 - 12 Dec 2003 - 02:13 GMT - PaulMclachlan
Revision r1.5 - 20 Jan 2004 - 20:13 GMT - AlexeyEfimov
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding this site? Send feedback.