due to a bug in javac this code in com.sun.xml.internal.messaging.saaj.soap.MessageImpl was being accepted:
static private final Iterator<AttachmentPart> nullIter = Collections.<AttachmentPart>EMPTY_LIST.iterator();
according to the JLS 15.12, it shouldn't be accepted. The proposed change is:
-static private final Iterator<AttachmentPart> nullIter = Collections.<AttachmentPart>EMPTY_LIST.iterator();
+static private final Iterator<AttachmentPart> nullIter = Collections.EMPTY_LIST.<AttachmentPart>iterator();
which is minimal and won't affect the semantics of the existing code
static private final Iterator<AttachmentPart> nullIter = Collections.<AttachmentPart>EMPTY_LIST.iterator();
according to the JLS 15.12, it shouldn't be accepted. The proposed change is:
-static private final Iterator<AttachmentPart> nullIter = Collections.<AttachmentPart>EMPTY_LIST.iterator();
+static private final Iterator<AttachmentPart> nullIter = Collections.EMPTY_LIST.<AttachmentPart>iterator();
which is minimal and won't affect the semantics of the existing code
- blocks
-
JDK-8185983 Javac should reject TypeArguments on field access expression
-
- Resolved
-
- relates to
-
JDK-8187954 Update JAX-WS RI integration to latest version
-
- Closed
-