Bug 71729

Summary: Syntax error on token "super", delete this token
Product: [Eclipse Project] JDT Reporter: Kent Ly <drkly>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Kent Ly CLA 2004-08-10 14:03:56 EDT
public void initControls() throws Exception
{
  JDialogUtils.disable( super); <- error, but ok with JBuilder 6
  ........
}
Comment 1 Olivier Thomann CLA 2004-08-10 16:02:13 EDT
super is not a primary, so this is a syntax error.
javac 1.4.2_05 also reports a syntax error:
B.java:11: '.' expected
  JDialogUtils.disable( super);
                             ^
B.java:11: <identifier> expected
  JDialogUtils.disable( super);
                              ^
2 errors

Jikes 1.18 also reports a syntax error:


Found 1 syntax error in "C:/tests_sources/B.java":

    11.   JDialogUtils.disable( super);
                                ^---^
*** Syntax: Unexpected symbol ignored

Issued 1 semantic warning compiling "C:/tests_sources/B.java":

     5. class A {
              ^
*** Semantic Warning: The file "B.java" contains type "A" which conflicts with
file "A.java".

See
http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#23302

Closing as INVALID.