Re: [aspectwerkz-dev] annotations and running AW from idea

christoph sturm <chrisml-Ws/[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
On Thu, 24 Jun 2004 15:21:13 +0100, Jonas Boner <[email protected]> wrote:
 >
 > You mean that it complains since JAM is compiled with 1.3 as target?
 > What is the problem? What do you want me to do?

sorry if my message was a bit cryptic :)

my problem is that my own sources use 1.4 features (basically just assert)
when i run annotationC it complains

example:
Loading source file 
src\main\com\schaumwelt\portal\DefaultPortletWindowRenderer.java...
src\main\com\schaumwelt\portal\DefaultPortletWindowRenderer.java:24: 
warning: as of release 1.4, assert is a keyword, and may not be used as 
an identifier
         assert portletRequest != null;
         ^
src\main\com\schaumwelt\portal\DefaultPortletWindowRenderer.java:24: ';' 
expected
         assert portletRequest != null;
                               ^
src\main\com\schaumwelt\portal\DefaultPortletWindowRenderer.java:25: 
warning: as of release 1.4, assert is a keyword, and may not be used as 
an identifier
         assert portletResponse != null;
         ^
src\main\com\schaumwelt\portal\DefaultPortletWindowRenderer.java:25: ';' 
expected
         assert portletResponse != null;
                                ^

so i need to tell the jam library that the input source code uses 1.4 
features. (like passing -source 1.4 to javac)

thanks
  chris
 >
 >
 > > -----Original Message-----
 > > From: christoph sturm [mailto:chrisml-Ws/[email protected]]
 > > Sent: Thursday, June 24, 2004 2:56 PM
 > > To: [email protected]
 > > Subject: Re: [aspectwerkz-dev] annotations and running AW from idea
 > >
 > > hi again
 > >
 > > I have now added a run configuration for annotationC (i
 > > figured out that that is the class that i want to run for
 > > annotations.).
 > >
 > > the only problem i have now is that it complains about my
 > > assert statements in my code. there needs to be a way to pass
 > >  something like -source 1.4 to jam. How do i accomplish that?
 > >
 > > regards
 > >   chris
 > >
 > >
 > >
 > >
 >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.