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.
Steps to reproduce: - Create a Class diagram - Put a Class element on the diagram and name it A - Put a Class element on the diagram and name it B - Insert 'private B b' atribute into the B Class element - Draw a Nested link from B to A - Generate code for UML project The generated code is: ----------------------------------------------------- public class A { public A() { } public class B { private A::B b; public B() { } public A::B getB() { return b; } public void setB(A::B val) { this.b = val; } } } ----------------------------------------------------- Nested 'B' class has 'private A::B b;' in source.
The "::" are now just "."
The issue is reproduced in build ide-coco-061128_11-ml.zip.
It is working for me. Is there something I am not doing to reproduce properly? Maybe OS or other environmental difference. I am testing on WinXP, JDK 1.5.06. See attached screenshot for my diagram source elements and code gen results.
Created attachment 36372 [details] Sucessful source elements and resulting code gen screenshot
I just verified with both builds 061128_11 & 061129_1 and the problem is reproducible in both builds.
I need more to go on. Is there something I am missing here that might help me reproduce it? It works perfect for me.
I just followed the exact steps from the description and it's reproducible for me. I can't see anything extra needed. Have you tried doing it from a fresh userdir to just make sure?
I think the difference in my testing was that I wasn't using the default package and therefore, a slightly different code path was used. Now it works whether in the default package or otherwise.
verified