Bug 95760 - [1.5][search] MatchLocator does not compile against 5.0 JRE
Summary: [1.5][search] MatchLocator does not compile against 5.0 JRE
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 RC1   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-18 10:25 EDT by Tom Hofmann CLA
Modified: 2005-05-27 10:26 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 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