forked from ceylon/ceylon-compiler
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue ceylon#339: Fix and improve the tests
- Loading branch information
1 parent
b0f765a
commit f1a315d
Showing
7 changed files
with
67 additions
and
22 deletions.
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
2 changes: 1 addition & 1 deletion
2
test-src/com/redhat/ceylon/compiler/java/test/interop/access/ExtendsDefaultAccessClass.src
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
25 changes: 25 additions & 0 deletions
25
...dhat/ceylon/compiler/java/test/interop/access/RefinesAndCallsProtectedAccessMethod.ceylon
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,25 @@ | ||
/* | ||
* Copyright Red Hat Inc. and/or its affiliates and other contributors | ||
* as indicated by the authors tag. All rights reserved. | ||
* | ||
* This copyrighted material is made available to anyone wishing to use, | ||
* modify, copy, or redistribute it subject to the terms and conditions | ||
* of the GNU General Public License version 2. | ||
* | ||
* This particular file is subject to the "Classpath" exception as provided in the | ||
* LICENSE file that accompanied this code. | ||
* | ||
* This program is distributed in the hope that it will be useful, but WITHOUT A | ||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
* PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License, | ||
* along with this distribution; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
* MA 02110-1301, USA. | ||
*/ | ||
@nomodel | ||
class RefinesAndCallProtectedAccessMethod() extends JavaAccessModifiers() { | ||
void foo(JavaAccessModifiers bar) { | ||
bar.protectedAccessMethod(); | ||
} | ||
} |
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
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
18 changes: 18 additions & 0 deletions
18
...-src/com/redhat/ceylon/compiler/java/test/interop/access/RefinesProtectedAccessMethod.src
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,18 @@ | ||
package com.redhat.ceylon.compiler.java.test.interop.access; | ||
|
||
class RefinesProtectedAccessMethod extends com.redhat.ceylon.compiler.java.test.interop.access.JavaAccessModifiers { | ||
|
||
@.java.lang.Override | ||
public final void protectedAccessMethod() { | ||
super.protectedAccessMethod(); | ||
} | ||
|
||
RefinesProtectedAccessMethod() { | ||
super(); | ||
} | ||
|
||
public static void main(.java.lang.String[] args) { | ||
.ceylon.language.process.getProcess().setupArguments(args); | ||
new .com.redhat.ceylon.compiler.java.test.interop.access.RefinesProtectedAccessMethod(); | ||
} | ||
} |