Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 16223 Details for
Bug 78914
[1.5][compiler] super() cannot be called in the constructor of an enum declaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test case
patch_78914_test.txt (text/plain), 1.00 KB, created by
Olivier Thomann
on 2004-11-29 17:38:16 EST
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-11-29 17:38:16 EST
Size:
1.00 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java,v >retrieving revision 1.28 >diff -u -r1.28 EnumTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java 18 Nov 2004 04:49:11 -0000 1.28 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java 29 Nov 2004 22:36:38 -0000 >@@ -1359,7 +1359,7 @@ > /** > * https://bugs.eclipse.org/bugs/show_bug.cgi?id=78914 > */ >- public void _test047() { >+ public void test047() { > this.runNegativeTest( > new String[] { > "X.java", >@@ -1370,7 +1370,12 @@ > " }\n" + > "}" > }, >- "ERROR" >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " super();\n" + >+ " ^^^^^^^\n" + >+ "Explicit constructor call is not allowed in an enum constructor\n" + >+ "----------\n" > ); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 78914
:
16214
|
16215
|
16222
| 16223