Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Java type annotations (JSR 308): Early Draft Review
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Michael Ernst  
View profile  
 More options Feb 11 2012, 1:18 pm
From: Michael Ernst <mer...@cs.washington.edu>
Date: Sat, 11 Feb 2012 10:18:57 -0800 (PST)
Local: Sat, Feb 11 2012 1:18 pm
Subject: Java type annotations (JSR 308): Early Draft Review
The type annotations specification ("JSR 308") is in Early Draft Review;
see http://jcp.org/aboutJava/communityprocess/edr/jsr308/index2.html .
This is a formal opportunity for the public to comment on the proposed
specification, so that it can be improved before being incorporated in the
Java language.  Of course, such comments have always been accepted at this
mailing list as well.

As background, Oracle has announced that they intend to include, in JDK 8,
support for type annotations.  Java 7 only permits annotations, such as
@Deprecated or @Override, to be written on declarations.  The ability to
write annotations on type uses enables improved documentation and bug
detection.  One example use is the Checker Framework for pluggable
typechecking (http://types.cs.washington.edu/checker-framework/).  Note
that the Checker Framework is a third-party tool and not part of the Java
language proper, and other tools will also use JSR 308.

                    -Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hero Wanders  
View profile  
 More options Feb 14 2012, 8:01 am
From: Hero Wanders <hero.wand...@arcor.de>
Date: Tue, 14 Feb 2012 05:01:25 -0800 (PST)
Local: Tues, Feb 14 2012 8:01 am
Subject: Re: Java type annotations (JSR 308): Early Draft Review

In chapter B (page 23) of the draft from 2012-01-23 I have found:

catch ( @A | @B NullPointerException | @C IllegalArgumentException e) {

> An annotation before the first | is treated as applying to every disjunct,
> so the above
> would be equivalent to (but shorter than)

> catch ( @A | @B NullPointerException | @C IllegalArgumentException e) {

The last line should probably replaced by the following:
catch (@A @B NullPointerException | @A @C IllegalArgumentException e) {

This is of course a very minor issue but perhaps you want to fix it in the
next revision.

With best regards
Hero Wanders


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Ernst  
View profile  
 More options Feb 14 2012, 11:49 am
From: Michael Ernst <mer...@cs.washington.edu>
Date: Tue, 14 Feb 2012 08:49:15 -0800 (PST)
Local: Tues, Feb 14 2012 11:49 am
Subject: Re: Java type annotations (JSR 308): Early Draft Review
Hero-

Thanks for spotting this typo!

I have corrected it, in this changeset:
http://code.google.com/p/jsr308-langtools/source/detail?r=7c235e6d3de...

                    -Mike


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »