You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by luan xl <he...@hotmail.com> on 2005/11/08 05:04:03 UTC
[m102] strange compile error
I used the "maven eclipse" to generate the eclipse project, and in the IDE
everything is fine, compile is ok and unit test is ok. but when I switch
back to using maven:
maven -X java:compile
the compiler can not find getTextContent() method in org.w3c.dom.Node, and
point the following statement as an error:
code += childList.item(i).getTextContent().hashCode() * 5L;
and I also tried "maven ant" to produce the ant build.xml, then I compile,
test, everything is also ok.
so it that a bug?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m102] strange compile error
Posted by luan xl <he...@hotmail.com>.
yeah, I am very sure about that, and I test on XP and Debian, both give the
same error.
so in the last few days I have to sitck to the ant to maintain the project.
later I will post the report as Arnaud suggested. Thanks for the attention.
>From: Dion Gillard <di...@gmail.com>
>Reply-To: "Maven Users List" <us...@maven.apache.org>
>To: Maven Users List <us...@maven.apache.org>
>Subject: Re: [m102] strange compile error
>Date: Mon, 14 Nov 2005 11:52:05 +1100
>
>Do the JDK versions for the IDE and the command prompt match?
>
>On 11/8/05, luan xl <he...@hotmail.com> wrote:
> > I used the "maven eclipse" to generate the eclipse project, and in the
IDE
> > everything is fine, compile is ok and unit test is ok. but when I
switch
> > back to using maven:
> >
> > maven -X java:compile
> >
> > the compiler can not find getTextContent() method in org.w3c.dom.Node,
and
> > point the following statement as an error:
> > code += childList.item(i).getTextContent().hashCode() * 5L;
> >
> > and I also tried "maven ant" to produce the ant build.xml, then I
compile,
> > test, everything is also ok.
> >
> > so it that a bug?
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
>--
>http://www.multitask.com.au/people/dion/
>"You are going to let the fear of poverty govern your life and your
>reward will be that you will eat, but you will not live." - George
>Bernard Shaw
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: [m102] strange compile error
Posted by Dion Gillard <di...@gmail.com>.
Do the JDK versions for the IDE and the command prompt match?
On 11/8/05, luan xl <he...@hotmail.com> wrote:
> I used the "maven eclipse" to generate the eclipse project, and in the IDE
> everything is fine, compile is ok and unit test is ok. but when I switch
> back to using maven:
>
> maven -X java:compile
>
> the compiler can not find getTextContent() method in org.w3c.dom.Node, and
> point the following statement as an error:
> code += childList.item(i).getTextContent().hashCode() * 5L;
>
> and I also tried "maven ant" to produce the ant build.xml, then I compile,
> test, everything is also ok.
>
> so it that a bug?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
http://www.multitask.com.au/people/dion/
"You are going to let the fear of poverty govern your life and your
reward will be that you will eat, but you will not live." - George
Bernard Shaw
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: [m102] strange compile error
Posted by Arnaud HERITIER <ah...@gmail.com>.
Hi,
I never saw this error
Can you open an issue in the java plugin with the log, your environment settings...
Thanks.
Arnaud
> -----Message d'origine-----
> De : luan xl [mailto:helix_ogg@hotmail.com]
> Envoyé : mardi 8 novembre 2005 05:04
> À : users@maven.apache.org
> Objet : [m102] strange compile error
>
> I used the "maven eclipse" to generate the eclipse project,
> and in the IDE everything is fine, compile is ok and unit
> test is ok. but when I switch back to using maven:
>
> maven -X java:compile
>
> the compiler can not find getTextContent() method in
> org.w3c.dom.Node, and point the following statement as an error:
> code += childList.item(i).getTextContent().hashCode() * 5L;
>
> and I also tried "maven ant" to produce the ant build.xml,
> then I compile, test, everything is also ok.
>
> so it that a bug?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org