Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ajdt-dev] proceed() marked as error - weird side effect

Here's an interesting one in AJDT.

The code below complains about the proceed(map) call, but seems to be a
side effect of being in a larger aspect (which this used to be).  For
example if the larger aspect defined a constant, the error is there.  If
I comment out the line defining the constant, the error vanishes.

Cheers,

Neale

P.S. Can we have the 1.7 stream updated with a new AJDE when 1.6.5 does
too (Sunday's build is using AJ from 27th Feb).
It'll help those of us that are looking to shake down 3.5 in daily use,
while still pushing forward with the latest AJ updates.



   AJDT version: 1.7.0.200903221413 for Eclipse 3.5
   AspectJ Compiler version: DEVELOPMENT


package somepackage;

import java.util.Map;
import com.lowagie.text.pdf.PdfGraphics2D;


/**
 * Catch a benign exception that happens due to iText and Substance UI
 * having an API argument.
 */
public aspect HandleITextException
{
	void around(Map map) :
        execution( public void PdfGraphics2D.addRenderingHints(Map) )
        && this(PdfGraphics2D)
        && args(map)
    {
        try {
            proceed(map);  // ERROR: The method proceed(Map) is
undefined for the type HandleITextException
        } catch (IllegalArgumentException e){
            // Do nothing
        }
    }
    private static final Integer i = null;  // COMMENT OUT THIS LINE AND
ERROR DISAPPEARS
}

**********************************************************************
IMPORTANT NOTICE.
Confidentiality:  This e-mail and its attachments are intended for the above named only and may be confidential.  If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this e-mail and highlight the error.
Security Warning:  Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium.
We advise that you understand and observe this lack of security when e-mailing us.
Viruses:  Although we have taken steps to ensure that this e-mail and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Monitoring and Scanning:  Cambridge Cognition has monitoring and scanning systems in place in relation to emails sent and received to: monitor / record business communications; prevent and detect crime; investigate the use of the Company's internal and external email system; and provide evidence of compliance with business practices.

Cambridge Cognition Limited
Company Registration Number 4338746
Registered address:
Tunbridge Court
Tunbridge Lane
Bottisham
Cambridge
CB25 9TU
UK
**********************************************************************



Back to the top