Bug 138361 - JDT DOM model inconsistent after running JPOX bytecode enhancer
Summary: JDT DOM model inconsistent after running JPOX bytecode enhancer
Status: RESOLVED DUPLICATE of bug 135729
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 09:32 EDT by Matthias Köster CLA
Modified: 2006-04-25 10:24 EDT (History)
0 users

See Also:


Attachments
Contains plugin projects showing the bug,. The jpox jdo enhancer plugin needs to be installed to show the problem! (72.38 KB, application/zip)
2006-04-25 09:35 EDT, Matthias Köster CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Köster CLA 2006-04-25 09:32:42 EDT
Attached you find two plugin projects, jdo-impl contains the JDO data class JdoTest that needs byte code enhancement. I'm using the JPOX enhacer plugin (from www.jpox.org, latest version) to do that incrementally via an IncrementalProjectBuilder, but we internally have an almost identical JDO enhancer plugin for eclipse. jdo-impl is used by the plugin project jdo-user, the class TestMe contains a reference to the bytecode enhanced class JdoTest. With enabled Automatic build and Automatic JDO bytecode enhancement i do a clean. So far so good: everything compiles. Now i'm adding a newline to class TestMe and save it, so that it's recompiled. Now the compiler complains that it can't resolve the type JdoTest. With 3.2M4 the plugin worked without problems, starting with M5 it was broken.

I suspect that the in memory java model reflects the source code and this will conflict with the bytecode enhanced class file, since the bytecode enhancer adds methods to the class and also adds an implements javax.jdo.PersistenceCapable.
Comment 1 Matthias Köster CLA 2006-04-25 09:35:15 EDT
Created attachment 39407 [details]
Contains plugin projects showing the bug,. The jpox jdo enhancer plugin needs to be installed to show the problem!
Comment 2 Kent Johnson CLA 2006-04-25 10:24:45 EDT
Have you tried the latest nightly build?

Please reopen if its not a duplicate of bug 135729

*** This bug has been marked as a duplicate of 135729 ***