| Summary: | Switch to Tycho 0.13.0-SNAPSHOT for building MAT | ||
|---|---|---|---|
| Product: | [Tools] MAT | Reporter: | Krum Tsvetkov <krum.tsvetkov> |
| Component: | Core | Assignee: | Project Inbox <mat.core-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrew_johnson |
| Version: | 1.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Krum Tsvetkov
I did the first step - switch from Tycho 0.11.0 to 0.12.0 and using the new group and artifact IDs. Checked in with revision 1167. I had some compilation problems with the dtfj bundle while trying to use 0.13.0-SNAPSHOT. Will try to resolve them. There was an error in cbi-mat-nightly #430 https://hudson.eclipse.org/hudson/view/Athena%20CBI%20%28SVN%29/job/cbi-mat-nightly/430/consoleFull [javac] 5. ERROR in /opt/users/hudsonbuild/workspace/cbi-mat-nightly/build/N201108150310/eclipse/plugins/org.eclipse.mat.dtfj/src/org/eclipse/mat/dtfj/DTFJIndexBuilder.java (at line 291) [javac] private static final class DummyJavaClass implements JavaClass, CorruptData [javac] ^^^^^^^^^^^^^^ [javac] The type DTFJIndexBuilder.DummyJavaClass must implement the inherited abstract method JavaClass.getInstanceSize() It looks like the interface JavaClass has changed to add an extra method getInstanceSize() I don't see the error with DTFJ from http://www.ibm.com/developerworks/java/jdk/tools/dtfj.html ftp://ftp.software.ibm.com/software/java/support/tools/dtfj/dtfj-updatesite.zip but the Athena and Tycho builds use http://public.dhe.ibm.com/software/isa/isa410/production/ to get an update site, and this version of DTFJ has been updated. The fix is quite simple - just to add an extra method. The existing versions of MAT should run with the new DTFJ as the getInstanceSize method will not be called. The change is need to let MAT compile with the new DTFJ. I managed to get the build with 0.13.0-SNAPSHOT running locally and submitted the changes. However, the first attempt to run it on the Eclipse server timed out (while loading the different maven plugins, before even starting to build). I'll try later again and check if it was some temporary network problem. Finally managed to get the build working. Not sure what exactly the problem was. It disappeared after I reconfigured the hudson job to use Maven 3.0.3 instead of 3.0. |