• Post Reply Bookmark Topic Watch Topic
  • New Topic

The field parentQName is defined in an inherited type and an enclosing scope  RSS feed

 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

I have the web project in JDK1.4 with myEclipse 10. I migrate it to be JDK 1.7 with eclipse Neon.3. But when compile, it shows error in attached picture. About The field parentQName is defined in an inherited type and an enclosing scope.
Is there anything I can do to solve this problem??

Capture.PNG
[Thumbnail for Capture.PNG]
 
Vasyl Lyashkevych
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is a type of error Eclipse gives to you?
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compile error with captioned title error
 
Vasyl Lyashkevych
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like parameter is incorrect. You can check in the the :
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry that I am new to this and I do not know how to code change to solve this. Is it a jar version problems??
 
Raymond Chiu Wing Hing
Ranch Hand
Posts: 91
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually previous myEclipse of JDK 1.4 is working and can compile without error.
 
Vasyl Lyashkevych
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, so you need to see the javadoc of that and exclude or cast that type to the needed
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vasyl Lyashkevych wrote:It seems like parameter is incorrect. You can check in the the :

Not really, it looks more like the parentQName can't be resolved. Otherwise Eclipse will underline the entire method call.

Raymond, can you show a small piece of code that indicates where parentQName is defined relative to this method?
 
Vasyl Lyashkevych
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to Sherif
 
Dave Tolls
Ranch Foreman
Posts: 3065
37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a Java level are you compiling against?
Is it 1.7?

I know you say you are using JDK 1.7, but I just want to make sure it's actually compiling as 1.7.

Also, can you post the code in code tags, rather than as an image?
It's hard to copy/paste bits of code from an image.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!