Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » org.eclipse.pde.junit (LinkageError)
org.eclipse.pde.junit (LinkageError) [message #145018] Tue, 24 February 2004 12:21
Eclipse UserFriend
Originally posted by: sw1107.uni-essen.de

Hi,

I am attempting to write a junit plugin test using the unit-testing tool
for plug-in development (org.eclipse.pde.junit).
Amongst other things this test-plugin compares compilation units on the
basis of
abstract syntax trees. For that purpose I need to create an object
<< org.aspectj.ajdt.internal.compiler.parser.AjParser >>

The following method causes no problems if it is located in an usual java
application
but if it gets launched as part of a JUnit plug-in test an LinkageError
takes place.

79 protected AjParser createAjParser() {
80 ProblemReporter problemReporter = new ProblemReporter(
81 DefaultErrorHandlingPolicies.proceedWithAllProblems(),
82 new CompilerOptions(),
83 new DefaultProblemFactory(Locale.getDefault())
84 );
85 boolean optimizeStringLiterals = true;
86 boolean assertMode = true;
87 AjParser ajp = new AjParser(problemReporter,
optimizeStringLiterals, assertMode);
88 return ajp;
89 }



java.lang.LinkageError: loader constraints violated when linking
org/eclipse/jdt/internal/compiler/problem/ProblemReporter class
at
aspectjrb.pde.test.CompilationUnitParser.createAjParser(Comp ilationUnitParse
r.java:87)
at
aspectjrb.pde.test.CompilationUnitParser.parseCompilationUni ts(CompilationUn
itParser.java:47)
at aspectjrb.pde.test.InitialTest.testScanning(InitialTest.java :70)
at java.lang.reflect.Method.invoke(Native Method)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRu
nner.java:392)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.
java:276)
at
org.eclipse.pde.internal.junit.ui.RemotePluginTestRunner.mai n(RemotePluginTe
stRunner.java:30)
at
org.eclipse.pde.internal.junit.ui.UITestApplication.runEvent Loop(UITestAppli
cation.java:35)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:431)
at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)

Has anybody suggestions how to solve that problem?

Thanks in advance
Christian
Previous Topic:Java menus extension points
Next Topic:How to export Java Project and run outside of eclipse
Goto Forum:
  


Current Time: Thu Jul 17 14:50:44 EDT 2025

Powered by FUDForum. Page generated in 0.12683 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top