Skip to content

Commit 382fe51

Browse files
archiecobbsTheShermanTanker
authored andcommitted
8163229: several regression tests have a main method that is never executed
Reviewed-by: vromero
1 parent 06f9374 commit 382fe51

File tree

129 files changed

+119
-191
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+119
-191
lines changed

test/langtools/tools/javac/4980495/static/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
public class Test {
1313

14-
public static void main(String argv[]) {
14+
public static void meth() {
1515
f = 1;
1616
}
1717
}

test/langtools/tools/javac/4980495/std/Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
public class Test {
1414

15-
public static void main(String argv[]) {
15+
public static void meth() {
1616
new f();
1717
}
1818
}

test/langtools/tools/javac/6491592/T6491592.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
public class T6491592 {
10-
public static void main(String... args) {
10+
public static void meth() {
1111
Object o = null;
1212
o += null;
1313
}

test/langtools/tools/javac/6857948/T6857948.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Foo {
1212
};
1313

1414
class Test {
15-
public static void main() {
15+
public static void meth() {
1616
Foo f = new Foo("Hello!",nosuchfunction()) {};
1717
}
1818
}

test/langtools/tools/javac/8062359/UnresolvableClassNPEInAttrTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
public class UnresolvableClassNPEInAttrTest {
10-
public static void main(String[] args) {
10+
public static void meth() {
1111
new Undefined() {
1212
void test() {
1313
new Object() {};

test/langtools/tools/javac/8161985/T8161985a.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
class T8161985 {
9-
public static void main(String [] arg) {
9+
public static void meth() {
1010
T8161985 t = new T8161985();
1111
t.getClass();
1212

test/langtools/tools/javac/8238735/T8238735.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
class T8238735 {
9-
public static void main(String[] args) {
9+
public static void meth() {
1010
boolean first = true;
1111
first = first ? false : (boolean)(() -> false) ;
1212
}

test/langtools/tools/javac/AnonymousClass/AnonymousInSuperCallNegTest.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,4 @@ void foo() {
2424
}
2525
}); }
2626
}
27-
28-
public static void main(String[] args) {
29-
new JavacBug();
30-
}
31-
}
27+
}

test/langtools/tools/javac/BreakAcrossClass.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
class BreakAcrossClass {
11-
public static void main(String argv[]) {
11+
public static void meth() {
1212
final int i = 6;
1313
M: {
1414
class A {

test/langtools/tools/javac/CaptureInSubtype.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,4 @@ public static class ShowFlaw extends SuperOfShowFlaw {
3737

3838
Flaw<?> m(){return fn;}
3939
}
40-
41-
public static void main(String[] args) {
42-
SuperOfShowFlaw sosf = new ShowFlaw();
43-
SuperOfFlaw<List<?>> sof = sosf.m();
44-
List<String> ls = new ArrayList<String>();
45-
ls.add("Smalltalk rules!");
46-
sof.put(ls);
47-
Number n = ShowFlaw.fn.get().get(0);
48-
}
49-
5040
}

0 commit comments

Comments
 (0)