This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Original submitter: sergeyp steps to reproduce: 1. add class to the diagram 2. add operation 'public void op( int x=1, int y)' with edit control ther is 'public void op( int x)' operation in source
The generated code is correct. Java does not support default values for method parameters. There is nothing that we can do, if the language does not support the feature.
reproducible with 061018_27 I don't understand your comment, what should do uml? do not generate operation at all? do not generate several parameters on uml wish? do you mean we shouldn't generate code for operation if I'll add some tagged values, constraints etc to operation property (which is not supported by java)? why first parameter with unsupported default value goes to code (it seems like invalide behaviour based on your statement)? I thin vald behaviour should be generation of all parameters but without defult values.
the issue not about default value generation in source but about missing parameters :)
Got it, I missed the fact that the second parameter was not being generated. I thought that the issue was about the fact that the default value was not being added to the code.
I did not mean to mark it as invalid.