Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JDK 8 javadoc @propertyGetter,@propertySetter and @propertyDescription warnings

JDK8 Javadoc give me lots of the following warning messages:

warning - Tags @propertyGetter, @propertySetter and @propertyDescription 
can only be used in JavaFX properties getters and setters.

source code does not use any of these tags.

Where do the messages come from?

JDK 7 works fine without these warnings.

like image 411
eastwater Avatar asked Apr 27 '15 17:04

eastwater


1 Answers

There is a closed OpenJDK bug report for that exact error message, stating that it arose on Linux using Java 8u131 when running javadoc for a class with a method like this:

public boolean isProperty() {
    return false;
}

The user also reported (like you) that this was not an issue with Java 7. That bug was closed since the error could not be reproduced. I also tried to reproduce the problem using 8u152 on Windows 10, but everything worked fine.

However, an open and related bug report was then created by the user, suggesting that the issue was related to an Ubuntu build of 8u131.

I'm guessing that this is no longer an issue for you, but if it is:

  • If you still have the problem, can you reproduce it by running javadoc against the trivial class detailed in that original bug report?

  • What version of Java and what Operating System are you using?

  • Does your source have any methods named getProperty(), setProperty() or isProperty()?

like image 85
skomisa Avatar answered Apr 29 '23 02:04

skomisa