Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336593 - Check for unresolved proxies
Summary: Check for unresolved proxies
Status: CLOSED FIXED
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 03:44 EST by Ed Willink CLA
Modified: 2011-03-30 05:24 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2011-02-08 03:44:54 EST
Forked off from Bug 335764.

> When accessing potential unresolved proxies, it is a good idea to check for a
> > proxy. The most evident unchecked place to me is at the root of AcceleoServ
> > ice.doGenerate where
> > 
> > final EClassifier argumentType = template.getParameter().get(0).getType();
> > 
> > is unchecked and the unresolved proxy results in a very quick execution and no
> > output for no matches.

We can't check for proxies everywhere ... but yes, this particular access
should be.

Everywhere is certainly impractical, but most proxies are actually to contained objects so they are very unlikely to fail.

The critical ones are type accesses that might resolve to a different module, these probably only occur in a couple of highly shared places.
Comment 1 Stephane Begaudeau CLA 2011-03-30 05:24:42 EDT
Contributed on HEAD. It will be available in Acceleo 3.1 M7.