Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 385374 - [1.8][compiler] JSR308 style annotations on JSR335 rules
Summary: [1.8][compiler] JSR308 style annotations on JSR335 rules
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 287648
  Show dependency tree
 
Reported: 2012-07-18 03:44 EDT by Srikanth Sankaran CLA
Modified: 2012-07-19 08:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2012-07-18 03:44:24 EDT
BETA_JAVA8:

This ER is a bit forward looking: The 308 specification is silent on
whether type annotations can be applied on reference expressions. (On
lambda expressions, they can be on explicitly typed formal parameters,
but this should automatically follow since the same productions are
used for (non type-elided) lambda formal parameter list as for any
method.) However early discussions in the EG are indicative of a spec
change to allow type annotations.

We should proceed to change our grammar to allow these already so we
can wrap up the grammar work and move on. Should these be declared
illegal eventually, we could simply reject them during semantic analysis
which often results in better error messages anyways
Comment 2 Srikanth Sankaran CLA 2012-07-19 08:31:41 EDT
Resolved.