Java project state reconciliation when project reopens [message #76828] |
Wed, 16 July 2003 12:57  |
Eclipse User |
|
|
|
I was wondering if the JDT is supposed to reconcile the classpath and error
markers of a Java project when it is reopened. Here's what I observe in
E2.1.0 on WindowsXP:
1) Create Java projectA, and projectB.
2) Make projectB as dependent on projectA (i.e., projectA added to projectB
classpath)
3) Close projectA, projectB will have error markers complaining about
missing projectA as a dependency
4) Close projectB
5) Open projectA
6) Open projectB.
At this point projectB retains the error markers it had when it was closed
rather than reconcile its state. The markers are now inconsistent with real
state, i.e., a false negative. Select "rebuild project" reconciles state and
markers are cleared.
The question is should I have to select the "rebuild project" action for
reconciliation or should this be an automatic behavior of the Resource and
JDT models? I searched Bugzilla and found bugs similar but not directly
addressing this question.
Wayne
|
|
|
Re: Java project state reconciliation when project reopens [message #77022 is a reply to message #76828] |
Thu, 17 July 2003 05:23  |
Eclipse User |
|
|
|
Wayne,
Indeed this sounds inconsistent. However it is sometimes hard to create
markers while in a POST_CHANGE event, but it looks like we do it for close.
Anyway could you please enter a bug against JDT/Core with the details below,
so that we can have a closer look?
Thanks,
Jerome
"Wayne Parrott" <wayne@genuitec.com> wrote in message
news:bf40cn$mgd$1@eclipse.org...
> I was wondering if the JDT is supposed to reconcile the classpath and
error
> markers of a Java project when it is reopened. Here's what I observe in
> E2.1.0 on WindowsXP:
>
> 1) Create Java projectA, and projectB.
> 2) Make projectB as dependent on projectA (i.e., projectA added to
projectB
> classpath)
> 3) Close projectA, projectB will have error markers complaining about
> missing projectA as a dependency
> 4) Close projectB
> 5) Open projectA
> 6) Open projectB.
> At this point projectB retains the error markers it had when it was closed
> rather than reconcile its state. The markers are now inconsistent with
real
> state, i.e., a false negative. Select "rebuild project" reconciles state
and
> markers are cleared.
>
> The question is should I have to select the "rebuild project" action for
> reconciliation or should this be an automatic behavior of the Resource and
> JDT models? I searched Bugzilla and found bugs similar but not directly
> addressing this question.
>
> Wayne
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06190 seconds