Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.classpath7
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.project17
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/bin/dummy/Dummy.classbin0 -> 447 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/lib/bug565512.jarbin0 -> 31043 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/src/dummy/Dummy.java12
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.classpath11
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.project17
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.settings/org.eclipse.jdt.core.prefs15
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/bin/dummy/Dummy.classbin0 -> 447 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/lib/bug565512Module.jarbin0 -> 31281 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/src/dummy/Dummy.java12
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.classpath10
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.gitignore1
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.project24
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.settings/org.eclipse.jdt.core.prefs15
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512.jar.jardesc16
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512WithSrc.jar.jardesc16
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.classpath11
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.gitignore1
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.project24
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.settings/org.eclipse.jdt.core.prefs15
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/export bug565512Module.jar.jardesc17
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/src2/module-info.java2
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.classpath7
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.project17
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/bin/dummy/Dummy.classbin0 -> 447 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/lib/bug565512WithSrc.jarbin0 -> 33395 bytes
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/src/dummy/Dummy.java12
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.classpath6
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.gitignore1
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.project17
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/$/$/$.java48
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/Class565512.java98
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/ExtendedClass565512.java59
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/Class565512.java67
-rw-r--r--org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/WrongClass565512.java36
36 files changed, 611 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.classpath
new file mode 100644
index 0000000000..e22b721a32
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="lib" path="lib/bug565512.jar" rootpath=""/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.project
new file mode 100644
index 0000000000..aa4d11da2a
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaSearchBug565512lib</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/bin/dummy/Dummy.class b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/bin/dummy/Dummy.class
new file mode 100644
index 0000000000..4faf1636cd
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/bin/dummy/Dummy.class
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/lib/bug565512.jar b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/lib/bug565512.jar
new file mode 100644
index 0000000000..005540a698
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/lib/bug565512.jar
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/src/dummy/Dummy.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/src/dummy/Dummy.java
new file mode 100644
index 0000000000..44de29694c
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/src/dummy/Dummy.java
@@ -0,0 +1,12 @@
+package dummy;
+
+public class Dummy {
+
+ // note that "String" implicit means "java.lang.String":
+ public static void main(String[] args) {
+ }
+// // TODO: somehow it makes a difference during search if "java.lang.String" is used in the class:
+ //bug 576306
+ void any(java.lang.String[] a) {
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.classpath
new file mode 100644
index 0000000000..f31482ba3b
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.classpath
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="lib" path="lib/bug565512Module.jar"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
+ <attributes>
+ <attribute name="module" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.project
new file mode 100644
index 0000000000..62020e3a1d
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaSearchBug565512libModule</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..a58ebdcad3
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,15 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=11
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=11
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/bin/dummy/Dummy.class b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/bin/dummy/Dummy.class
new file mode 100644
index 0000000000..4faf1636cd
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/bin/dummy/Dummy.class
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/lib/bug565512Module.jar b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/lib/bug565512Module.jar
new file mode 100644
index 0000000000..655a51e4c3
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/lib/bug565512Module.jar
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/src/dummy/Dummy.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/src/dummy/Dummy.java
new file mode 100644
index 0000000000..44de29694c
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/src/dummy/Dummy.java
@@ -0,0 +1,12 @@
+package dummy;
+
+public class Dummy {
+
+ // note that "String" implicit means "java.lang.String":
+ public static void main(String[] args) {
+ }
+// // TODO: somehow it makes a difference during search if "java.lang.String" is used in the class:
+ //bug 576306
+ void any(java.lang.String[] a) {
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.classpath
new file mode 100644
index 0000000000..33c97a3926
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.classpath
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
+ <attributes>
+ <attribute name="module" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.gitignore b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.gitignore
new file mode 100644
index 0000000000..5e56e040ec
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.gitignore
@@ -0,0 +1 @@
+/bin
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.project
new file mode 100644
index 0000000000..69f9b49817
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.project
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>bug565512</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>src</name>
+ <type>2</type>
+ <locationURI>$%257BPARENT-2-PROJECT_LOC%257D/JavaSearchBug565512src/src</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..cd8d089a19
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,15 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=11
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=11
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512.jar.jardesc b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512.jar.jardesc
new file mode 100644
index 0000000000..355ce27983
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512.jar.jardesc
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="WINDOWS-1252" standalone="no"?>
+<jardesc>
+ <jar path="org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512lib/lib/bug565512.jar"/>
+ <options buildIfNeeded="true" compress="true" descriptionLocation="/bug565512/export bug565512.jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
+ <storedRefactorings deprecationInfo="true" structuralOnly="false"/>
+ <selectedProjects/>
+ <manifest generateManifest="true" manifestLocation="" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true">
+ <sealing sealJar="false">
+ <packagesToSeal/>
+ <packagesToUnSeal/>
+ </sealing>
+ </manifest>
+ <selectedElements exportClassFiles="true" exportJavaFiles="false" exportOutputFolder="false">
+ <javaElement handleIdentifier="=bug565512/src"/>
+ </selectedElements>
+</jardesc>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512WithSrc.jar.jardesc b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512WithSrc.jar.jardesc
new file mode 100644
index 0000000000..b408f36989
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512/export bug565512WithSrc.jar.jardesc
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="WINDOWS-1252" standalone="no"?>
+<jardesc>
+ <jar path="org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/lib/bug565512WithSrc.jar"/>
+ <options buildIfNeeded="true" compress="true" descriptionLocation="/bug565512/export bug565512WithSrc.jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
+ <storedRefactorings deprecationInfo="true" structuralOnly="false"/>
+ <selectedProjects/>
+ <manifest generateManifest="true" manifestLocation="" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true">
+ <sealing sealJar="false">
+ <packagesToSeal/>
+ <packagesToUnSeal/>
+ </sealing>
+ </manifest>
+ <selectedElements exportClassFiles="true" exportJavaFiles="true" exportOutputFolder="false">
+ <javaElement handleIdentifier="=bug565512/src"/>
+ </selectedElements>
+</jardesc>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.classpath
new file mode 100644
index 0000000000..19d5e94cca
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.classpath
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="src2"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
+ <attributes>
+ <attribute name="module" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.gitignore b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.gitignore
new file mode 100644
index 0000000000..5e56e040ec
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.gitignore
@@ -0,0 +1 @@
+/bin
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.project
new file mode 100644
index 0000000000..9998c14ec2
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.project
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>bug565512Module</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+ <linkedResources>
+ <link>
+ <name>src</name>
+ <type>2</type>
+ <locationURI>$%257BPARENT-2-PROJECT_LOC%257D/JavaSearchBug565512src/src</locationURI>
+ </link>
+ </linkedResources>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000000..a58ebdcad3
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,15 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=11
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
+org.eclipse.jdt.core.compiler.release=enabled
+org.eclipse.jdt.core.compiler.source=11
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/export bug565512Module.jar.jardesc b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/export bug565512Module.jar.jardesc
new file mode 100644
index 0000000000..0b83220520
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/export bug565512Module.jar.jardesc
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="WINDOWS-1252" standalone="no"?>
+<jardesc>
+ <jar path="org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libModule/lib/bug565512Module.jar"/>
+ <options buildIfNeeded="true" compress="true" descriptionLocation="/bug565512Module/export bug565512Module.jar.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
+ <storedRefactorings deprecationInfo="true" structuralOnly="false"/>
+ <selectedProjects/>
+ <manifest generateManifest="true" manifestLocation="" manifestVersion="1.0" reuseManifest="false" saveManifest="false" usesManifest="true">
+ <sealing sealJar="false">
+ <packagesToSeal/>
+ <packagesToUnSeal/>
+ </sealing>
+ </manifest>
+ <selectedElements exportClassFiles="true" exportJavaFiles="false" exportOutputFolder="false">
+ <javaElement handleIdentifier="=bug565512Module/src"/>
+ <javaElement handleIdentifier="=bug565512Module/src2"/>
+ </selectedElements>
+</jardesc>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/src2/module-info.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/src2/module-info.java
new file mode 100644
index 0000000000..9b2b4c565f
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libProjects/bug565512Module/src2/module-info.java
@@ -0,0 +1,2 @@
+module bug565512 {
+} \ No newline at end of file
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.classpath
new file mode 100644
index 0000000000..bcb39f4d0b
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="lib/bug565512WithSrc.jar" rootpath=""/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.project
new file mode 100644
index 0000000000..0a1dbac832
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaSearchBug565512libWithSrc</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/bin/dummy/Dummy.class b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/bin/dummy/Dummy.class
new file mode 100644
index 0000000000..4faf1636cd
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/bin/dummy/Dummy.class
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/lib/bug565512WithSrc.jar b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/lib/bug565512WithSrc.jar
new file mode 100644
index 0000000000..c22b9cef69
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/lib/bug565512WithSrc.jar
Binary files differ
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/src/dummy/Dummy.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/src/dummy/Dummy.java
new file mode 100644
index 0000000000..44de29694c
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512libWithSrc/src/dummy/Dummy.java
@@ -0,0 +1,12 @@
+package dummy;
+
+public class Dummy {
+
+ // note that "String" implicit means "java.lang.String":
+ public static void main(String[] args) {
+ }
+// // TODO: somehow it makes a difference during search if "java.lang.String" is used in the class:
+ //bug 576306
+ void any(java.lang.String[] a) {
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.classpath b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.classpath
new file mode 100644
index 0000000000..fb5011632c
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.classpath
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.gitignore b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.gitignore
new file mode 100644
index 0000000000..ae3c172604
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.gitignore
@@ -0,0 +1 @@
+/bin/
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.project b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.project
new file mode 100644
index 0000000000..f9323b66c2
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JavaSearchBug565512src</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/$/$/$.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/$/$/$.java
new file mode 100644
index 0000000000..2bbd1c2105
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/$/$/$.java
@@ -0,0 +1,48 @@
+package $.$;
+
+class $ { // $.$.$
+ int $; // $.$.$.$
+ void $() {} // $.$.$.$()
+ class $I { // $.$.$.$I
+ int $; // $.$.$.$I.$
+ void $() {} // $.$.$.$I.$()
+ class $II { // $.$.$.$I.$II
+ int $; // $.$.$.$I.$II.$
+ void $() {} // $.$.$.$I.$II.$()
+ }
+ }
+ static class $SI { // $.$.$.$SI
+ int $; // $.$.$.$SI.$
+ void $() {} // $.$.$.$SI.$()
+ static class $SII { // $.$.$.$SI.$SII
+ int $; // $.$.$.$SI.$SII.$
+ void $() {} // $.$.$.$SI.$SII.$()
+ }
+ }
+
+ class $E extends $ { // $.$.$.$E
+ int $; // $.$.$.$E.$
+ void $() {} // $.$.$.$E.$()
+ class $EE extends $E { // $.$.$.$E.$EE
+ int $; // $.$.$.$E.$EE.$
+ void $() {} // $.$.$.$E.$EE.$()
+ }
+ }
+ static class $SE extends $ {// $.$.$.$SE
+ int $; // $.$.$.$SE.$
+ void $() {} // $.$.$.$E.$()
+ static class $SEE extends $SE { // $.$.$.$SE.$SEE
+ int $; // $.$.$.$SE.$SEE.$
+ void $() { // $.$.$.$SE.$SEE.$()
+ new $().$();
+ (new $().new $I()).$();
+ (new $().new $I().new $II()).$();
+ new $SI().$();
+ (new $SI.$SII()).$();
+ new $SE().$();
+ (new $SE.$SEE()).$();
+ }
+ }
+ }
+
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/Class565512.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/Class565512.java
new file mode 100644
index 0000000000..8099324197
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/Class565512.java
@@ -0,0 +1,98 @@
+package lib565512;
+
+//this class has references itself
+public class Class565512 {
+ class InnerClass {
+ class InnerClass2 {
+ }
+ }
+
+ static class StaticNestedClass {
+ static class StaticNestedClass2 {
+ }
+ }
+
+ { class LocalClass {{ class LocalClass2 {}}}
+ new Class565512() {// Anonymous
+ {new Class565512() {// Anonymous2
+ };
+ }
+ };
+ }
+ public static class PublicStaticInnerClass {}
+ private class PrivateInnerClass {}
+ private static class PrivateStaticInnerClass {}
+
+ public class ExtendedClass extends Class565512 {}
+ public class ExtendedInnerClass extends InnerClass {}
+ static class ExtendedPublicStaticInnerClass extends PublicStaticInnerClass {}
+ private class ExtendedPrivateInnerClass extends PrivateInnerClass {}
+ private static class ExtendedPrivateStaticInnerClass extends PrivateStaticInnerClass {}
+
+ void inside(Class565512 c) {
+ class InnerClassInside {
+ class InnerClass2Inside {
+ }
+ }
+
+
+ { class LocalClassInside {{ class LocalClass2Inside {}}}
+ new Class565512() {// Anonymous
+ {new Class565512() {// Anonymous2
+ };
+ }
+ };
+ }
+ }
+
+ void x() {
+ x();
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ private static void privateStatic() {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static void customMain(String[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static String stringReturning() {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ return null;
+ }
+
+ public static void main(String[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static int primitiveMain(int[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ return 0;
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/ExtendedClass565512.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/ExtendedClass565512.java
new file mode 100644
index 0000000000..26435e6901
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512/ExtendedClass565512.java
@@ -0,0 +1,59 @@
+package lib565512;
+
+//this class has references to lib565512.Class565512
+public class ExtendedClass565512 extends Class565512{
+ class InnerClass {}
+ public static class PublicStaticInnerClass {}
+ private class PrivateInnerClass {}
+ private static class PrivateStaticInnerClass {}
+
+ public class ExtendedClass extends Class565512 {}
+ public class ExtendedInnerClass extends Class565512.InnerClass {}
+ static class ExtendedPublicStaticInnerClass extends Class565512.PublicStaticInnerClass {}
+
+ void x() {
+ Class565512 c = new Class565512();
+ c.x();
+ c.main(null);
+ c.customMain(null);
+ c.primitiveMain(null);
+ c.stringReturning();
+ }
+
+ private static void privateStatic() {
+ Class565512.main(null);
+ Class565512.customMain(null);
+ Class565512.primitiveMain(null);
+ Class565512.stringReturning();
+ }
+
+ public static void customMain(String[] args) {
+ Class565512.main(null);
+ Class565512.customMain(null);
+ Class565512.primitiveMain(null);
+ Class565512.stringReturning();
+ }
+
+ public static String stringReturning() {
+ Class565512.main(null);
+ Class565512.customMain(null);
+ Class565512.primitiveMain(null);
+ Class565512.stringReturning();
+ return null;
+ }
+
+ public static void main(String[] args) {
+ Class565512.main(null);
+ Class565512.customMain(null);
+ Class565512.primitiveMain(null);
+ Class565512.stringReturning();
+ }
+
+ public static int primitiveMain(int[] args) {
+ Class565512.main(null);
+ Class565512.customMain(null);
+ Class565512.primitiveMain(null);
+ Class565512.stringReturning();
+ return 0;
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/Class565512.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/Class565512.java
new file mode 100644
index 0000000000..85ba3858ff
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/Class565512.java
@@ -0,0 +1,67 @@
+package lib565512wrong;
+
+// this class has no references to lib565512.Class565512
+// but it has the same unqualified name
+public class Class565512 {
+ class InnerClass {}
+ public static class PublicStaticInnerClass {}
+ private class PrivateInnerClass {}
+ private static class PrivateStaticInnerClass {}
+
+ public class ExtendedClass extends Class565512 {}
+ public class ExtendedInnerClass extends InnerClass {}
+ static class ExtendedPublicStaticInnerClass extends PublicStaticInnerClass {}
+ private class ExtendedPrivateInnerClass extends PrivateInnerClass {}
+ private static class ExtendedPrivateStaticInnerClass extends PrivateStaticInnerClass {}
+
+ void x() {
+ x();
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ private static void privateStatic() {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static void customMain(String[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static String stringReturning() {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ return null;
+ }
+
+ public static void main(String[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ }
+
+ public static int primitiveMain(int[] args) {
+ main(null);
+ customMain(null);
+ privateStatic();
+ primitiveMain(null);
+ stringReturning();
+ return 0;
+ }
+}
diff --git a/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/WrongClass565512.java b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/WrongClass565512.java
new file mode 100644
index 0000000000..7bc2ed7b40
--- /dev/null
+++ b/org.eclipse.jdt.core.tests.model/workspace/JavaSearchBug565512src/src/lib565512wrong/WrongClass565512.java
@@ -0,0 +1,36 @@
+package lib565512wrong;
+
+// this class has no references to lib565512.Class565512
+// but it has the same member names
+public class WrongClass565512 {
+ class InnerClass {}
+ public static class PublicStaticInnerClass {}
+ private class PrivateInnerClass {}
+ private static class PrivateStaticInnerClass {}
+
+ public class ExtendedClass extends WrongClass565512 {}
+ public class ExtendedInnerClass extends InnerClass {}
+ static class ExtendedPublicStaticInnerClass extends PublicStaticInnerClass {}
+ private class ExtendedPrivateInnerClass extends PrivateInnerClass {}
+ private static class ExtendedPrivateStaticInnerClass extends PrivateStaticInnerClass {}
+
+ void x() {
+ }
+
+ private static void privateStatic() {
+ }
+
+ public static void customMain(String[] args) {
+ }
+
+ public static String stringReturning() {
+ return null;
+ }
+
+ public static void main(String[] args) {
+ }
+
+ public static int primitiveMain(int[] args) {
+ return 0;
+ }
+}

Back to the top