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 - User can set private or protected visibility for classes and interfaces
Summary: User can set private or protected visibility for classes and interfaces
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: Properties (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-19 10:31 UTC by bugbridge
Modified: 2009-05-25 21:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.