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.
hen executing "Update Model from Source" for a java file with 2 byte name, the "Reverse Engineering" dialog shows errors. Please see the attached. The dialog says the name is unexpected. As the result, a Class diagram is not generated in a UML project. Please do not say do not use 2 byte chars for Class name. Java specification allows 2 byte to use for any identifiers. This happens even if file name does not have mbyte, but other parts of the file, like a function name, has multibyte in it. Error msg shown is similar to one in gif, although the hex character it says is unexpected will vary. Java does allow mbyte to be in java file name, function/method/etc names.
Created attachment 31181 [details] image
recent comment from Sergey on this: addition of attribute with non-ascii character in name leads to absent of entire class element in model. ken.frank@sun.com
This problem is now fixed. Since we are using the javac parser, we are now able to determine if the name of the namespace is a class or a package. So, we are doing the correct thing. The fix in currently in a unstable branch. When the unstable branch is merged into the the release55 branch I will close this issue.
Trey, can you merge this now ? We'd like to verify it but in regular entpack build. Sasha, can you track this and verify when its in build ? ken.frank@sun.com
please merge this fix now into coco_griffin or whatever the branch is for coco and then for griffin also. Needed for coco release. ken.frank@sun.com
We had to stop the MDR work. So, this work did not make it into the release. IZ does not let me mark this issue as not being started.
Created attachment 36020 [details] image of how it looks in coco
attached is image of how this looks in coco. To clarify, this means that if a java file has function or variable or name that does not have ascii characters, that reverse engineering will not happen at all. If this will not be fixed, can info be put in release notes, with workaround that users would need to add the items to the diagram directly as well as adding them to their code ? ken.frank@sun.com
We where not able to complete the new reverse engineering component :-(
looks like a dup of 80927. Intend to close it as such.
*** This issue has been marked as a duplicate of 80927 ***
Since this is a duplicate of issue 80927 that has already been verified, this dup should have been verified as well.