• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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

 
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]
 
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
 
Sheriff
Posts: 21459
96
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
 
Master Rancher
Posts: 3630
40
  • 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!