Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenericPropertyDescriptor cannot be cast to NumericPropertyDescriptor #108

Closed
gsangiacomo opened this issue Jul 12, 2019 · 0 comments
Closed
Assignees
Labels
Milestone

Comments

@gsangiacomo
Copy link

Java language - I'm using Eclipse Version: 2019-06 (4.12.0) Build id: 20190614-1200 (but i've the same problem with older version) and I've installed Eclipse PMD Plugin
PMD Team PMD UI Plugin 4.5.0.v20190630-0922 net.sourceforge.pmd.eclipse

I can't set the properties of rule CommentSize because when try to set preferences in Eclipse IDE compares the following exception:

net.sourceforge.pmd.properties.GenericPropertyDescriptor cannot be cast to net.sourceforge.pmd.properties.NumericPropertyDescriptor

If I continue the managing of the preferences I look at empty folder about "Properties" of rule "CommentSize".

I suppose tha the problem is for omany other rules (only those haven't got NumericPropertyDescriptor can show properties).

In Eclipse to access preferences I follow these steps:
1- Window -> Preferences -> PMD -> Rule Configuration
2- check "Use gloal rule management"
3- select with mouse click the line of rule "CommentSize"

The issue for me is significant because I would set custom size to check the comment in my source code.

Regards,
Giulio Sangiacomo

@adangel adangel transferred this issue from pmd/pmd Jul 12, 2019
@adangel adangel added the bug label Jul 12, 2019
@adangel adangel changed the title Eclipse PMD Plugin - GenericPropertyDescriptor cannot be cast to NumericPropertyDescriptor GenericPropertyDescriptor cannot be cast to NumericPropertyDescriptor Jul 12, 2019
@adangel adangel self-assigned this Jan 24, 2020
@adangel adangel added this to the 4.10.0 milestone Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants