Bug 95760

Summary: [1.5][search] MatchLocator does not compile against 5.0 JRE
Product: [Eclipse Project] JDT Reporter: Tom Hofmann <eclipse>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: All   
Whiteboard:

Description Tom Hofmann CLA 2005-05-18 10:25:36 EDT
N20050518-gtk

org.eclipse.jdt.internal.core.search.matching.MatchLocator R1.245 does not
compile against a 5.0 JRE because of an import naming conflict:

import java.util.* imports the '@since 1.5' class java.util.Scanner, conflicting
with org.eclipse.jdt.internal.compiler.parser.Scanner which is also imported
using a star-import.
Comment 1 Frederic Fusier CLA 2005-05-18 10:46:02 EDT
Fixed and released in HEAD.

Replace
import java.util.*;
with:
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
Comment 2 Olivier Thomann CLA 2005-05-27 10:26:01 EDT
Verified in I20050526-2000