| Summary: | [reconciler] NPE during AST creation, team in role file subclassing non-team role | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] Objectteams | Reporter: | Stephan Herrmann <stephan.herrmann> | ||||||
| Component: | OTJ | Assignee: | Stephan Herrmann <stephan.herrmann> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 0.7 | ||||||||
| Target Milestone: | 0.7.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Stephan Herrmann
Created attachment 178218 [details]
test and fix
When the TeamMethodGenerator tries to fetch the class bytes,
they may have already been nulled by ClassFileReader.initialize().
It turns out, however, that some MethodInfos still hold on to the
byte codes (due to our own hack in MethodInfo).
To make the new test pass also some additions to JCLMin are needed,
because we need to resolve the constant pool references of method
bodies from o.o.Team against this library.
Patch has been committed as r760 - r766 (incl. deploying JCLMin1.5). Created attachment 178305 [details]
additional fixes
This patch implements more cases for fetching bytecode of o.o.Team:
* when compiling o.o.Team from source collect bytes via different call chains
using existing mechanim in MethodModel
* when o.o.Team is converted from JavaElement do not try to copy bytecodes,
we have none.
No new tests, debugged using a rt-workbench with two workspace projects:
org.eclipse.objectteams.runtime (for Team.java) and
org.eclipse.objectteams.otdt.jdt.ui (for CreateMethodMappingCompletionProposal)
Verified using I201009211735, both by the test in OTReconcilerTests and by frequently challenging CreateMethodMappingCompletionProposal. |