You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jingkei Ly (JIRA)" <ji...@apache.org> on 2009/01/12 19:29:59 UTC
[jira] Created: (JCI-59) [JCI] Eclipse compiler is unable to
compile additional top-level classes
[JCI] Eclipse compiler is unable to compile additional top-level classes
------------------------------------------------------------------------
Key: JCI-59
URL: https://issues.apache.org/jira/browse/JCI-59
Project: Commons JCI
Issue Type: Bug
Components: compiler eclipse
Affects Versions: 1.1
Reporter: Jingkei Ly
When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,
{code}
package jci;
public class Simple {
public String toString() {
return \"Simple\";
}
}
class AdditionalTopLevel {
" public String toString() {\n" +
" return \"AdditionalTopLevel\";\n" +
" }\n" +
"}"
{code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCI-59) [JCI] Eclipse compiler is unable to
compile additional top-level classes
Posted by "Jingkei Ly (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCI-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jingkei Ly updated JCI-59:
--------------------------
Description:
When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,
{code}
package jci;
public class Simple {
public String toString() {
return \"Simple\";
}
}
class AdditionalTopLevel {
public String toString() {
return \"AdditionalTopLevel\";
}
}
{code}
Causes the compile error: The type AdditionalTopLevel collides with a package.
This works fine with the Javac compiler and the Janino compiler.
was:
When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,
{code}
package jci;
public class Simple {
public String toString() {
return \"Simple\";
}
}
class AdditionalTopLevel {
" public String toString() {\n" +
" return \"AdditionalTopLevel\";\n" +
" }\n" +
"}"
{code}
> [JCI] Eclipse compiler is unable to compile additional top-level classes
> ------------------------------------------------------------------------
>
> Key: JCI-59
> URL: https://issues.apache.org/jira/browse/JCI-59
> Project: Commons JCI
> Issue Type: Bug
> Components: compiler eclipse
> Affects Versions: 1.1
> Reporter: Jingkei Ly
>
> When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,
> {code}
> package jci;
> public class Simple {
> public String toString() {
> return \"Simple\";
> }
> }
> class AdditionalTopLevel {
> public String toString() {
> return \"AdditionalTopLevel\";
> }
> }
> {code}
> Causes the compile error: The type AdditionalTopLevel collides with a package.
> This works fine with the Javac compiler and the Janino compiler.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (JCI-59) [JCI] Eclipse compiler is unable to
compile additional top-level classes
Posted by "Jingkei Ly (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/JCI-59?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jingkei Ly updated JCI-59:
--------------------------
Attachment: JCI-59-testcase-1.patch
I've attached a test case that demonstrates this problem (in the form of a patch to the existing AbstractCompilerTestCase, let me know if you want me to split it out).
> [JCI] Eclipse compiler is unable to compile additional top-level classes
> ------------------------------------------------------------------------
>
> Key: JCI-59
> URL: https://issues.apache.org/jira/browse/JCI-59
> Project: Commons JCI
> Issue Type: Bug
> Components: compiler eclipse
> Affects Versions: 1.1
> Reporter: Jingkei Ly
> Attachments: JCI-59-testcase-1.patch
>
>
> When using the Eclipse compiler, I am unable to compile additional top-level classes. For example,
> {code}
> package jci;
> public class Simple {
> public String toString() {
> return \"Simple\";
> }
> }
> class AdditionalTopLevel {
> public String toString() {
> return \"AdditionalTopLevel\";
> }
> }
> {code}
> Causes the compile error: The type AdditionalTopLevel collides with a package.
> This works fine with the Javac compiler and the Janino compiler.
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.