Discussion:
[Xdoclet-devel] [XDoclet-JIRA] Created: (XJD-80) Parsing fails if inner class method references outer class' super method
Lev Levin (JIRA)
2009-10-15 18:45:00 UTC
Permalink
Parsing fails if inner class method references outer class' super method
------------------------------------------------------------------------

Key: XJD-80
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-80
Project: XJavaDoc
Issue Type: Bug
Components: Parser
Affects Versions: 1.5
Environment: WinXP
Reporter: Lev Levin
Assignee: xdoclet-devel (Use for new issues)


Next example results in "Error parsing File C:\DEV\eclipse.eca\workspace\tests\src\com\acme\tests\XDocletInnerClassProblemTest.java:Parse error at line 26, column 45. Encountered: ." error:

package com.acme.tests;

import java.io.File;

import xjavadoc.SourceSet;
import xjavadoc.XJavaDoc;
import xjavadoc.filesystem.FileSourceSet;

public final class XDocletInnerClassProblemTest {

interface InnerInterface {
void someMethod();
}

public void enclosingMethod() {
// do nothing
}

public void ThirdMethod(InnerInterface ii) {
ii.someMethod();
}

public void secondMethod() {
ThirdMethod(new InnerInterface() {
public void someMethod() {
XDocletInnerClassProblemTest.super.toString();
}
});
}

public void forthMethod() {
// do something
}

public static void main(String[] args) {
XJavaDoc xjavadoc = new XJavaDoc();
File file = new File("src/com/acme/tests/XDocletInnerClassProblemTest.java");
SourceSet sc = new FileSourceSet(file);
xjavadoc.addSourceSet(sc);
xjavadoc.getSourceClasses();
}

}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...