Bug 30663 - lame error message: "negation doesn't allow binding"
Summary: lame error message: "negation doesn't allow binding"
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-30 15:48 EST by Doug Orleans CLA
Modified: 2010-01-25 08:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Orleans CLA 2003-01-30 15:48:08 EST
AspectJ Compiler 1.1beta4

This program:

public aspect Foo {
  pointcut p(int i): call(void f(i));
}

produces these error messages:

negation doesn't allow binding
formal unbound in pointcut

2 errors

It should say something like "binding is only allowed in state-based pointcuts", and it should print the file and line number.

--Doug
Comment 1 Jim Hugunin CLA 2003-04-27 19:22:31 EDT
fixed in tree, and test in bugs/BadBindingError.java