When generating java classes its generate the accessor methods (getters and setters) for private atributes. The methods are generated with private modifier. Reproducible: Always Steps to Reproduce: 1.Create a class. 2.Define private atributes. 3.Export code. Actual Results: Private getters and setters are generated for atributes. Expected Results: Public getters and setters to be generated for private atributes.
Thanks for reporting your issue. There are currently two java code generators. If you enable the new code generator in Umbrello general settings, you can select the scope for accessor methods in the code generator wizard (second page, under Language Options). If you find that the old generator provides in some use cases that new one does not / does something better, please let us know.
Unfortunately I do not see any further options for the export of Java code. I'm using Umbrello 2.18.3 from OpenSUSE Leap 42.1 and there setting further options is only possible at the C++ code export.
(In reply to Benedikt Geißler from comment #2) > Unfortunately I do not see any further options for the export of Java code. > I'm using Umbrello 2.18.3 from OpenSUSE Leap 42.1 and there setting further > options is only possible at the C++ code export. New codegenerator is only enabled in the git master branch because of major design issues. See bug 351103
Git commit aea379fb09ceadaa636f2b9374693c582dd8963d by Ralf Habacker. Committed on 10/11/2019 at 19:00. Pushed by habacker into branch 'release/19.12'. Fix 'auto-generated getters and setters to atributes are private in generated java classes' FIXED-IN:2.29.90 (KDE Applications 19.11.90) M +4 -4 umbrello/codegenerators/java/javawriter.cpp https://commits.kde.org/umbrello/aea379fb09ceadaa636f2b9374693c582dd8963d