forked from leibnitz27/cfr_tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f4228fd
commit c2ed955
Showing
9 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.benf.cfr.tests; | ||
|
||
import static java.lang.annotation.RetentionPolicy.RUNTIME; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RUNTIME) | ||
@Target({ElementType.PACKAGE}) | ||
@interface AnnotatedPackage { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.benf.cfr.tests; | ||
|
||
// from ovf | ||
public class FieldNameClashTestDerivedPriv extends FieldNameClashTestPriv { | ||
public static void main(String[]a){ | ||
FieldNameClashTestPriv.greet();} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package org.benf.cfr.tests; | ||
|
||
// from ovf | ||
public class FieldNameClashTestPriv { | ||
private static String FieldNameClashTestPriv ="hello, world"; | ||
public static void greet(){System.out.println(FieldNameClashTestPriv);} | ||
public static void main(String[]a){ | ||
org.benf.cfr.tests.FieldNameClashTestPriv.greet();} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.benf.cfr.tests; | ||
|
||
public interface Package_Info { | ||
// Fake file. | ||
|
||
int x = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.benf.cfr.tests; | ||
|
||
public class SwitchExpressionLocalClass { | ||
void test() { | ||
switch(0) { | ||
default: { | ||
class Test { | ||
Test(int i) { } | ||
} | ||
|
||
new Test(1); | ||
} | ||
}; | ||
class Test { } | ||
new Test(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.benf.cfr.tests; | ||
|
||
public class SwitchExpressionLocalClass2 { | ||
void test() { | ||
switch(0) { | ||
default: { | ||
} | ||
}; | ||
{ | ||
class Test { | ||
Test(int i) { } | ||
} | ||
|
||
new Test(1); | ||
} | ||
class Test { } | ||
new Test(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.benf.cfr.tests; | ||
|
||
// bug#92 | ||
class ThrowsClauseExact2<EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE extends Exception> { | ||
public void testThrow() throws EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE { } | ||
|
||
public static void main(String... args) throws Exception{ | ||
new ThrowsClauseExact2().testThrow(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@AnnotatedPackage | ||
package org.benf.cfr.tests; |