Hello everyone, I have a java object with some attributes like: id, name, surname, status. I have no idea what is wrong but whenever i try to access some property it always gives me twice from the same property like the following: alt text

Does any of you had the same problem :/

asked 13.07.2017 at 09:09

Tano93's gravatar image

Tano93
(suspended)
accept rate: 0%

can you share the outline of this java class? Could it be, that the status field is public and also has a public getter? Or is this an overriden property of a parent class?

(17.07.2017 at 03:09) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

Could it be, that the status field is public and also has a public getter?

link

answered 17.07.2017 at 03:39

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

Thank you so much, as you said the mistake was that i have public field and also public getter, have a nice day :)

(17.07.2017 at 03:26) Tano93 Tano93's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×147

Asked: 13.07.2017 at 09:09

Seen: 1,161 times

Last updated: 18.07.2017 at 08:44