JDK-7015156 : Remove JSR 308 changes from core libraries
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-27
  • Updated: 2017-05-16
  • Resolved: 2011-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b130Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
JSR 308 added two new enum constants to java.lang.annotation.ElementType.  These two constants and any uses of them should be removed from the JDK since JSR 308 is not being included in JDK 7.

Comments
SUGGESTED FIX # HG changeset patch # User darcy # Date 1296263389 28800 # Node ID d21a1ce074a7915a7418d32be58ef4b43fcbc3c9 # Parent dea360853f8b2ade7cdb2b78331741a073f82606 7015156: Remove JSR 308 changes from core libraries Reviewed-by: mduigou --- a/src/share/classes/java/lang/SuppressWarnings.java Fri Jan 28 13:26:14 2011 +0000 +++ b/src/share/classes/java/lang/SuppressWarnings.java Fri Jan 28 17:09:49 2011 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -44,7 +44,7 @@ import static java.lang.annotation.Eleme * @since 1.5 * @author Josh Bloch */ -@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE, TYPE_PARAMETER}) +@Target({TYPE, FIELD, METHOD, PARAMETER, CONSTRUCTOR, LOCAL_VARIABLE}) @Retention(RetentionPolicy.SOURCE) public @interface SuppressWarnings { /** --- a/src/share/classes/java/lang/annotation/ElementType.java Fri Jan 28 13:26:14 2011 +0000 +++ b/src/share/classes/java/lang/annotation/ElementType.java Fri Jan 28 17:09:49 2011 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2009, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -40,12 +40,6 @@ public enum ElementType { /** Class, interface (including annotation type), or enum declaration */ TYPE, - /** Uses of a type */ - TYPE_USE, - - /** type parameters */ - TYPE_PARAMETER, - /** Field declaration (includes enum constants) */ FIELD,
29-01-2011

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk7/tl/jdk/rev/d21a1ce074a7
29-01-2011

EVALUATION Yes.
27-01-2011