Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 401223

Summary: [1.8][compiler] add 'package' as an access modifier
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3 CC: markus.kell.r
Version: 4.3   
Target Milestone: BETA J8   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 380190    

Description Stephan Herrmann CLA 2013-02-19 14:15:17 EST
JSR 335 0.6.1 Part H:

"To avoid confusion with the default modifier, the access level given implicitly to unmodified declarations in classes is now referred to as package access rather than default access; the package modifier may be used to explicitly indicate this access level."

Interestingly this only speaks of "declarations in classes".

The only updated grammar rule I can see in this regard is:

ClassModifier: one of
  Annotation
  'public'
  'protected'
  'package'
  'private'
  'abstract'
  'static'
  'final'
  'strictfp'
  
This looks inconsistent to me. I assume that all levels (classes, interfaces and members) should be affected, but then the spec should say so.
Comment 1 Srikanth Sankaran CLA 2013-02-19 14:20:04 EST
This feature is very likely to be pulled out of Java 8, per discussions
in the EG list. I'll wait until the next draft spec becomes available
before closing as NOP.
Comment 2 Srikanth Sankaran CLA 2013-02-26 18:07:16 EST
We have word that this proposal is being pulled back. So resolving as
invalid.