I the scenario below, "optimize import" modifies the code so bad it
- doesn't compile anymore
- doesn't mean the same as before the optimization.
To lower the coupling with an external package,
I've been replacing all the references to
electric.xml.ParseException
by
myown.ParseException
It required :
1� deleting
electric.xml.ParseException
2�
catching "electric.xml.ParseException"
and rethring myown.ParseException
=> the code below
public void doIt () throws ParseException // this is
"electric.xml.ParseException"
{
document = new Document (..);
}
becomes
public void doIt () throws ParseException // now, it's
"myown.ParseException"
{
try {
document = new Document (..);
}
catch ( electric.xml.ParseException e ) {
throw new ParseException(e);
}
}
When I call "optimize import", it undo my code so bad it doesn't compile
anymore.
Alain Ravet
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list