renamed all modules

This commit is contained in:
Andy Clement
2014-01-15 11:36:24 -08:00
parent 342420b2ed
commit ceef61cf98
1055 changed files with 301 additions and 259 deletions

14
testdata/.classpath vendored Normal file
View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer" exported="true"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/>
<classpathentry sourcepath="/Users/aclement/.gradle/caches/artifacts-26/filestore/org.aspectj/aspectjrt/1.7.1/source/86aa0e2952b2a370e04db7fc1a76b483909a38f/aspectjrt-1.7.1-sources.jar" kind="lib" path="/Users/aclement/.gradle/caches/artifacts-26/filestore/org.aspectj/aspectjrt/1.7.1/jar/e9ed47b6e3326c4a6666027978315028275ba8aa/aspectjrt-1.7.1.jar" exported="true"/>
<classpathentry sourcepath="/Users/aclement/.gradle/caches/artifacts-26/filestore/cglib/cglib/2.2.2/source/fc1558bebc50419cdb55fbffd81c290e21f058c1/cglib-2.2.2-sources.jar" kind="lib" path="/Users/aclement/.gradle/caches/artifacts-26/filestore/cglib/cglib/2.2.2/jar/a47a971686474124562bdd4a7ccbd8ac8c3e8b11/cglib-2.2.2.jar" exported="true"/>
<classpathentry kind="lib" path="/Users/aclement/.gradle/caches/artifacts-26/filestore/asm/asm/3.2/jar/9bc1511dec6adf302991ced13303e4140fdf9ab7/asm-3.2.jar" exported="true"/>
<classpathentry kind="lib" path="/Users/aclement/.gradle/caches/artifacts-26/filestore/asm/asm-tree/3.2/jar/cd792e29c79d170c5d0bdd05adf5807cf6875c90/asm-tree-3.2.jar" exported="true"/>
<classpathentry kind="lib" path="/Users/aclement/gits/spring-loaded/testdata/code.jar" exported="true"/>
</classpath>

View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.jdt.core.javabuilder"/>
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>

29
testdata/.project vendored Normal file
View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>testdata</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.ajdt.core.ajbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.jdt.core.javabuilder.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.ajdt.ui.ajnature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,4 @@
#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
#Thu Sep 05 20:20:46 CEST 2013
org.springsource.ide.eclipse.gradle.linkedresources=
org.springsource.ide.eclipse.gradle.rootprojectloc=..

View File

@@ -0,0 +1,13 @@
#
#Tue Jan 14 11:38:13 PST 2014
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6

351
testdata/LICENSES/LICENSE vendored Normal file
View File

@@ -0,0 +1,351 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=======================================================================
Spring Loaded 1.1.0:
Spring Loaded 1.1.0 includes a number of subcomponents with
separate copyright notices and license terms. The product that
includes this file does not necessarily use all the open source
subcomponents referred to below. Your use of the source
code for the these subcomponents is subject to the terms and
conditions of the following licenses.
SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES
>>> asm - 3.2
>>> asm-commons - 3.2
>>> asm-tree - 3.2
>>> asm-util - 3.2
-------------SECTION 1: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES------------------------------
BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES are applicable to the following component(s)
>>> asm - 3.2
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2007 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
>>> asm-commons - 3.2
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2005 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
>>> asm-tree - 3.2
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2005 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
>>> asm-util - 3.2
ASM: a very small and fast Java bytecode manipulation framework
Copyright (c) 2000-2005 INRIA, France Telecom
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holders nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
[SPRINGLOADED110KL072612]

40
testdata/build.gradle vendored Normal file
View File

@@ -0,0 +1,40 @@
def aspectjVersion = "1.7.1"
configurations {
aspects
ajInpath
}
dependencies {
tools "org.aspectj:aspectjtools:$aspectjVersion"
compile "org.aspectj:aspectjrt:$aspectjVersion"
compile("cglib:cglib:2.2.2") { exclude group: 'asm' } // cglib 2.2.2 depends on asm 3.3
compile 'asm:asm:3.2'
compile 'asm:asm-tree:3.2'
compile files("code.jar")
}
compileJava.deleteAllActions()
task aspectJ(dependsOn: JavaPlugin.PROCESS_RESOURCES_TASK_NAME) {
dependsOn configurations.tools.getTaskDependencyFromProjectDependency(true, "compileJava")
def srcDirs = sourceSets.main.java.srcDirs
srcDirs.each { inputs.dir it }
def destDir = sourceSets.main.output.classesDir
outputs.dir destDir
doLast {
ant.taskdef(resource: "org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties", classpath: configurations.tools.asPath)
ant.iajc(source:sourceCompatibility, target:targetCompatibility, destDir: destDir.absolutePath, maxmem:"512m", fork:"true",
aspectPath: configurations.aspects.asPath, inpath:configurations.ajInpath.asPath, sourceRootCopyFilter:"**/.svn/*,**/*.java",classpath:configurations.compile.asPath ){
sourceroots {
srcDirs.each {
if (it.exists()) pathelement location: it.absolutePath
}
}
}
}
}
compileJava.dependsOn aspectJ

BIN
testdata/code.jar vendored Normal file

Binary file not shown.

5
testdata/codejar/A.java vendored Normal file
View File

@@ -0,0 +1,5 @@
package codeforjar;
public class A {
public static String getString() { return "Hello"; }
}

4
testdata/codejar/readme.txt vendored Normal file
View File

@@ -0,0 +1,4 @@
This jar is built from the code in the codejar folder in the testdata project:
javac -d . *.java
jar -cvMf ../code.jar *

BIN
testdata/lib/cglib-nodep-2.2.jar vendored Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1 @@
com.test.plugins.ReloadEventProcessorPlugin1

View File

@@ -0,0 +1 @@
#com.test.plugins.ReloadEventProcessorPlugin1

View File

@@ -0,0 +1 @@
com.test.plugins.ReloadEventProcessorPlugin1

View File

@@ -0,0 +1,4 @@
package abs;
public abstract class AbsImpl implements Intface {
}

View File

@@ -0,0 +1,7 @@
package abs;
public abstract class AbsImpl2 implements Intface {
public int method() {
return 2;
}
}

11
testdata/src/main/java/abs/Impl.java vendored Normal file
View File

@@ -0,0 +1,11 @@
package abs;
public class Impl extends AbsImpl {
public int method() {
return 1;
}
public static void run() {
System.out.println(new Impl().method());
}
}

8
testdata/src/main/java/abs/Impl2.java vendored Normal file
View File

@@ -0,0 +1,8 @@
package abs;
public class Impl2 extends AbsImpl2 {
public static void run() {
System.out.println(new Impl2().method());
}
}

View File

@@ -0,0 +1,5 @@
package abs;
interface Intface {
public int method();
}

View File

@@ -0,0 +1,19 @@
package accessors;
public class DefaultFields {
int defaultField = 1;
public int a() {
return defaultField;
}
public static void main(String[] args) {
DefaultFields top = new DefaultFields();
DefaultFieldsSub bot = new DefaultFieldsSub();
System.out.println(top.a());
System.out.println(bot.a());
// System.out.println(top.b());
System.out.println(bot.b());
}
}

View File

@@ -0,0 +1,10 @@
package accessors;
public class DefaultFieldsSub extends DefaultFields {
int defaultField = 2;
public int b() {
return defaultField;
}
}

View File

@@ -0,0 +1,21 @@
package accessors;
@SuppressWarnings("unused")
public class PrivateFields {
private static boolean b = false;
private static String someStaticString = "def";
private int i;
private String someString;
private long lng;
public PrivateFields() {
i = 23;
someString = "abc";
lng = 32768L;
}
}

View File

@@ -0,0 +1,34 @@
package accessors;
@SuppressWarnings("unused")
public class ProtectedFields {
protected static boolean b = false;
protected static String someStaticString = "def";
protected int i;
protected String someString;
protected long lng;
public ProtectedFields() {
i = 23;
someString = "abc";
lng = 32768L;
}
public static String run() {
new ProtectedFields().print();
return "success";
}
public void print() {
System.out.println(b);
System.out.println(someStaticString);
System.out.println(i);
System.out.println(someString);
System.out.println(lng);
}
}

View File

@@ -0,0 +1,9 @@
package annos;
@SimpleAnnotation
public class AnnotatedType {
public static void printit() {
System.out.println(AnnotatedType.class.getAnnotation(SimpleAnnotation.class));
}
}

View File

@@ -0,0 +1,9 @@
package annos;
@SimpleAnnotation
public class AnnotatedType2 {
public static void printit() {
System.out.println(">>" + AnnotatedType2.class.getAnnotation(SimpleAnnotation.class));
}
}

View File

@@ -0,0 +1,8 @@
package annos;
import java.lang.annotation.Documented;
@Documented
public @interface Foo2 {
}

26
testdata/src/main/java/annos/Play.java vendored Normal file
View File

@@ -0,0 +1,26 @@
package annos;
import java.lang.annotation.Documented;
import java.lang.reflect.Method;
public class Play {
public void run() throws Exception {
new Play().doit();
}
public static void main(String[] args) throws Exception {
new Play().doit();
}
public void doit() throws Exception {
Class<?> clazz = Documented.class;
System.out.println(clazz.getName());
Method m = clazz.getMethod("annotationType");
Documented d = Foo2.class.getAnnotation(Documented.class);
System.out.println(m);
System.out.println(d);
System.out.println(m.getDeclaringClass().getName());
}
}
// TODO $Proxy0 in the case I'm investigating is the impl of jlaDocumented.

24
testdata/src/main/java/annos/Play2.java vendored Normal file
View File

@@ -0,0 +1,24 @@
package annos;
import java.lang.annotation.Documented;
// TODO [important] need to promote these to public so that the executor can see them!
@Documented
@interface Foo {
}
public class Play2 {
public void run() {
new Play2().doit();
}
public static void main(String[] args) {
new Play2().doit();
}
public void doit() {
Documented d = Foo.class.getAnnotation(Documented.class);
System.out.println(d.annotationType());
}
}

View File

@@ -0,0 +1,9 @@
package annos;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface SimpleAnnotation {
String value() default "hello";
}

View File

@@ -0,0 +1,11 @@
package annos;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface SimpleAnnotation2 {
String value() default "hello";
int number() default 42;
}

View File

@@ -0,0 +1,5 @@
package baddata;
public class One {
}

View File

@@ -0,0 +1,7 @@
package baddata;
// Changed implemented interfaces
@SuppressWarnings("serial")
public class OneA implements java.io.Serializable {
}

View File

@@ -0,0 +1,7 @@
package baddata;
// New field added
public class OneB {
public int i;
}

12
testdata/src/main/java/basic/Basic.java vendored Normal file
View File

@@ -0,0 +1,12 @@
package basic;
public class Basic {
public void foo() {
}
public int getValue() {
return 5;
}
}

View File

@@ -0,0 +1,8 @@
package basic;
public class Basic002 {
public int getValue() {
return 7;
}
}

View File

@@ -0,0 +1,8 @@
package basic;
public class Basic003 {
public int getValue() {
return 3;
}
}

View File

@@ -0,0 +1,8 @@
package basic;
public class Basic004 {
public int getValue() {
return 4;
}
}

View File

@@ -0,0 +1,12 @@
package basic;
public class BasicB {
public void foo() {
}
public int getValue() {
return 5;
}
}

View File

@@ -0,0 +1,12 @@
package basic;
public class BasicC {
public void foo() {
}
public int getValue() {
return 5;
}
}

View File

@@ -0,0 +1,9 @@
package basic;
public class Bottom extends Top {
public void run() {
new Bottom().method();
}
}

View File

@@ -0,0 +1,13 @@
package basic;
public class Bottom2 extends Top2 {
public void method() {
System.out.println("abc");
}
public void run() {
new Bottom2().method();
}
}

8
testdata/src/main/java/basic/Top.java vendored Normal file
View File

@@ -0,0 +1,8 @@
package basic;
public class Top {
public final void method() {
}
}

View File

@@ -0,0 +1,8 @@
package basic;
public class Top2 {
public void method() {
}
}

View File

@@ -0,0 +1,26 @@
package benchmarks;
public class MethodInvoking {
int i;
public String run() {
// warmup
for (int i = 0; i < 1000000; i++) {
m();
}
// measure
long l = System.currentTimeMillis();
for (int i = 0; i < 50000000; i++) {
m();
}
return Long.toString(System.currentTimeMillis() - l);
}
public void m() {
i = 4;
}
public static void main(String[] args) {
System.out.println(new MethodInvoking().run());
}
}

View File

@@ -0,0 +1,5 @@
package builder;
public class DispatcherTestOne {
}

View File

@@ -0,0 +1,8 @@
package builder;
public class DispatcherTestOne002 {
public String toString() {
return "abc";
}
}

View File

@@ -0,0 +1,8 @@
package builder;
public class DispatcherTestOne003 {
public String foo(int i) {
return Integer.toString(i);
}
}

19
testdata/src/main/java/catchers/A.java vendored Normal file
View File

@@ -0,0 +1,19 @@
package catchers;
@SuppressWarnings("unused")
public class A {
public int publicMethod() {
return 65;
}
private int privateMethod() {
return 2222;
}
void defaultMethod() {
}
protected int protectedMethod() {
return 23;
}
}

View File

@@ -0,0 +1,8 @@
package catchers;
public class B extends A {
public Object callProtectedMethod() {
return protectedMethod();
}
}

24
testdata/src/main/java/catchers/B2.java vendored Normal file
View File

@@ -0,0 +1,24 @@
package catchers;
public class B2 extends A {
public String toString() {
return "hey!";
}
public int publicMethod() {
return 66;
}
@SuppressWarnings("unused")
private int privateMethod() {
return 4444;
}
public Object callProtectedMethod() {
return protectedMethod();
}
protected int protectedMethod() {
return 32;
}
}

View File

@@ -0,0 +1,6 @@
package catchers;
public class Bottom extends Middle {
public void foo() {
}
}

View File

@@ -0,0 +1,11 @@
package catchers;
class Super {
public final int hashCode() {
return 12;
}
}
public class Finality extends Super {
// no catcher, inherited method is final
}

View File

@@ -0,0 +1,9 @@
package catchers;
// Top provides an implementation for would normally get a catcher
public abstract class Middle extends Top {
public int hashCode() {
return 12;
}
}

View File

@@ -0,0 +1,18 @@
package catchers;
public class Runner {
B b = new B();
public String runToString() {
return b.toString();
}
public Object runPublicMethod() {
return b.publicMethod();
}
public Object runProtectedMethod() {
return b.callProtectedMethod();
}
}

View File

@@ -0,0 +1,44 @@
package catchers;
public class Runner2 {
X x = new X();
Y y = new Y();
Z z = new Z();
public int runPublicX() {
return x.publicMethod();
}
public int runPublicY() {
return y.publicMethod();
}
public int runPublicZ() {
return z.publicMethod();
}
public char runDefaultX() {
return x.defaultMethod();
}
public char runDefaultY() {
return y.defaultMethod();
}
public char runDefaultZ() {
return z.defaultMethod();
}
public long runProtectedX() {
return x.callProtectedMethod();
}
public long runProtectedY() {
return y.callProtectedMethod();
}
public long runProtectedZ() {
return z.callProtectedMethod();
}
}

View File

@@ -0,0 +1,10 @@
package catchers;
class AbstractClass {
public void setTelephone(String s) {
}
}
public class SimpleCatcher extends AbstractClass {
// should get a catcher for setTelephone
}

View File

@@ -0,0 +1,11 @@
package catchers;
// Top provides an implementation for would normally get a catcher
public abstract class Top {
public String toString() {
return "ABC";
}
// defines something that needs a catcher
public abstract void foo();
}

23
testdata/src/main/java/catchers/X.java vendored Normal file
View File

@@ -0,0 +1,23 @@
package catchers;
@SuppressWarnings("unused")
public class X {
public int publicMethod() {
return 1;
}
private void privateMethod() {
}
char defaultMethod() {
return 'a';
}
protected long protectedMethod() {
return 100;
}
public long callProtectedMethod() {
return protectedMethod();
}
}

View File

@@ -0,0 +1,5 @@
package catchers;
public class Y extends X {
}

16
testdata/src/main/java/catchers/Y2.java vendored Normal file
View File

@@ -0,0 +1,16 @@
package catchers;
public class Y2 extends X {
public int publicMethod() {
return 22;
}
char defaultMethod() {
return 'B';
}
protected long protectedMethod() {
return 200;
}
}

20
testdata/src/main/java/catchers/Z.java vendored Normal file
View File

@@ -0,0 +1,20 @@
package catchers;
@SuppressWarnings("unused")
public class Z extends Y {
public int publicMethod() {
return 3;
}
private void privateMethod() {
}
char defaultMethod() {
return 'c';
}
protected long protectedMethod() {
return 300;
}
}

Binary file not shown.

View File

@@ -0,0 +1,8 @@
//public class play {
// protected void p() {
// }
//}
//
//class x extends play {
// public void p() {}
//}

10
testdata/src/main/java/clinit/One.java vendored Normal file
View File

@@ -0,0 +1,10 @@
package clinit;
public class One {
public static int i = 5;
public static String run() {
return Integer.toString(i);
}
}

10
testdata/src/main/java/clinit/One2.java vendored Normal file
View File

@@ -0,0 +1,10 @@
package clinit;
public class One2 {
public static int i = 7;
public static String run() {
return Integer.toString(i);
}
}

View File

@@ -0,0 +1,10 @@
package clinit;
public class Three {
// i have no clinit
public static String run() {
return "1";
}
}

View File

@@ -0,0 +1,10 @@
package clinit;
public class Three2 {
// still no clinit
public static String run() {
return "1";
}
}

View File

@@ -0,0 +1,13 @@
package clinit;
public class Three3 {
static int i;
{
i = 4;
}
public static String run() {
return Integer.toString(i);
}
}

10
testdata/src/main/java/clinit/Two.java vendored Normal file
View File

@@ -0,0 +1,10 @@
package clinit;
public class Two {
public final static int i = 55;
public static String run() {
return Integer.toString(i);
}
}

10
testdata/src/main/java/clinit/Two2.java vendored Normal file
View File

@@ -0,0 +1,10 @@
package clinit;
public class Two2 {
public final static int i = 99;
public static String run() {
return Integer.toString(i);
}
}

View File

@@ -0,0 +1,7 @@
package codegen;
public class Simple {
public void method() {
}
}

View File

@@ -0,0 +1,11 @@
package com.demo;
public class Bar {
private int count = 0;
public int increment() {
return count = count + 2;
}
}

View File

@@ -0,0 +1,12 @@
package com.demo;
public class Foo {
public static void main(String[] args) {
Bar bar = new Bar();
System.out.println(bar.increment());
System.out.println(bar.increment());
System.out.println(bar.increment());
System.out.println(bar.increment());
System.out.println(bar.increment());
}
}

13
testdata/src/main/java/common/Anno.java vendored Normal file
View File

@@ -0,0 +1,13 @@
package common;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface Anno {
String id();
int someValue() default 37;
long longValue() default 2L;
}

View File

@@ -0,0 +1,7 @@
package common;
import java.lang.annotation.*;
@Retention(RetentionPolicy.RUNTIME)
public @interface Marker {
}

14
testdata/src/main/java/ctors/A.java vendored Normal file
View File

@@ -0,0 +1,14 @@
package ctors;
public class A {
String string;
A(String s) {
this.string = s;
}
public String getString() {
return string;
}
}

7
testdata/src/main/java/ctors/B.java vendored Normal file
View File

@@ -0,0 +1,7 @@
package ctors;
public class B extends A {
B(int i) {
super(new Integer(i).toString());
}
}

7
testdata/src/main/java/ctors/B2.java vendored Normal file
View File

@@ -0,0 +1,7 @@
package ctors;
public class B2 extends A {
B2(int i) {
super("27");
}
}

View File

@@ -0,0 +1,13 @@
package ctors;
public class Callee {
Callee() {
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,17 @@
package ctors;
public class Callee2 {
Callee2() {
}
Callee2(String theString) {
System.out.println(theString);
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,13 @@
package ctors;
public class CalleeB extends CalleeSuperB {
CalleeB() {
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,18 @@
package ctors;
public class CalleeB2 extends CalleeSuperB2 {
CalleeB2() {
}
CalleeB2(String theString) {
super(32768);
System.out.println(theString);
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,13 @@
package ctors;
public class CalleeSuperB {
CalleeSuperB() {
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,17 @@
package ctors;
public class CalleeSuperB2 {
CalleeSuperB2() {
}
CalleeSuperB2(int i) {
System.out.println("Super number was " + i);
}
public String toString() {
return "callee";
}
}

View File

@@ -0,0 +1,13 @@
package ctors;
public class Caller {
public Object runA() {
return new Callee();
}
public Object runB() {
// ... stubbed here ...
return null;
}
}

View File

@@ -0,0 +1,12 @@
package ctors;
public class Caller2 {
public Object runA() {
return new Callee();
}
public Object runB() {
return new Callee2("abcde");
}
}

View File

@@ -0,0 +1,13 @@
package ctors;
public class CallerB {
public Object runA() {
return new CalleeB();
}
public Object runB() {
// ... stubbed here ...
return null;
}
}

View File

@@ -0,0 +1,12 @@
package ctors;
public class CallerB2 {
public Object runA() {
return new CalleeB();
}
public Object runB() {
return new CalleeB2("abcde");
}
}

View File

@@ -0,0 +1,4 @@
package ctors;
public class Default {
}

View File

@@ -0,0 +1,16 @@
package ctors;
public class Finals {
public final int i = 324;
public static final String s = "abc";
public Finals() {
}
public String getValue() {
return i + " " + s;
}
}

View File

@@ -0,0 +1,16 @@
package ctors;
public class Finals2 {
public final int i = 324;
public static final String s = "def";
public Finals2() {
}
public String getValue() {
return i + " " + s;
}
}

23
testdata/src/main/java/ctors/JR.java vendored Normal file
View File

@@ -0,0 +1,23 @@
package ctors;
public class JR {
public JR(int i) {
}
public static String printMessage() {
return "hello";
}
public static JR getInstance() {
return new JR(42);
}
public Object getFieldReflectively() throws Exception {
return null;
}
public void setFieldReflectively(int value) throws Exception {
}
}

36
testdata/src/main/java/ctors/JR2.java vendored Normal file
View File

@@ -0,0 +1,36 @@
package ctors;
import java.lang.reflect.Field;
public class JR2 {
int field = 34;
public JR2(int i) {
}
public JR2() {
}
public static String printMessage() {
return "goodbye";
}
public static JR2 getInstance() {
return new JR2();
}
public Object getFieldReflectively() throws Exception {
Field f = this.getClass().getDeclaredField("field");
return f.get(this);
}
public void setFieldReflectively(int value) throws Exception {
Field f = this.getClass().getDeclaredField("field");
f.setAccessible(true);
f.set(this,value);
}
}

7
testdata/src/main/java/ctors/One.java vendored Normal file
View File

@@ -0,0 +1,7 @@
package ctors;
public class One {
public One() {
System.out.println("Hello Andy");
}
}

View File

@@ -0,0 +1,7 @@
package ctors;
public class One2 {
public One2() {
System.out.println("Hello World");
}
}

View File

@@ -0,0 +1,26 @@
package ctors;
public class Setter {
public int integer;
public String string;
public Setter setter;
Setter() {
integer = 1;
string = "one";
}
public String toString() {
return "instance of Setter";
}
public int getInteger() {
return integer;
}
public String getString() {
return string;
}
}

View File

@@ -0,0 +1,25 @@
package ctors;
public class Setter2 {
public int integer;
public String string;
Setter2() {
integer = 2;
string = "two";
}
public String toString() {
return "instance of Setter";
}
public int getInteger() {
return integer;
}
public String getString() {
return string;
}
}

View File

@@ -0,0 +1,24 @@
package ctors;
public class Setter3 {
public int integer;
public String string;
Setter3() {
integer = 3;
}
public String toString() {
return "instance of Setter";
}
public int getInteger() {
return integer;
}
public String getString() {
return string;
}
}

View File

@@ -0,0 +1,8 @@
package ctors;
public class SuperThree {
SuperThree() {
System.err.print("Hello from SuperThree.");
}
}

Some files were not shown because too many files have changed in this diff Show More