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.

Bug 80547

Summary: User can set private or protected visibility for classes and interfaces
Product: uml Reporter: bugbridge <bugbridge>
Component: PropertiesAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: sunflower
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description bugbridge 2006-07-19 10:31:18 UTC
Original submitter: sunflower

Description:

Steps to reproduce:

- Create class diagram.
- Add class to the diagram and name it 'Class1' .
- Select the class on the diagram.
- Change visibility property of the class to private.
- Build Java Source project.
  Next error message appears in the output panel:

  init:
  deps-jar:
  Compiling 1 source file to C:\test\uml\App2_JAVA\build\classes
  C:\test\uml\App2_JAVA\src\Class1.java:2: modifier private not allowed here
  private class Class1 {
  1 error
  BUILD FAILED (total time: 0 seconds)  

  User should not have possibility to set private or protected visibility for
  classes and interfaces.
Comment 1 Craig Conover 2006-08-14 20:50:49 UTC
Review: bug is as stated. This is a properties issue not a synchronization issue
(change subcomponent). The property should only show valid options for top level
Java classes and interfaces.