Re: Geronimo Server Trunk - Compilation Errors shown in Eclipse workspace

2010-08-11 Thread Kevan Miller
I don't have any answers. IIRC, this doesn't stop you from using eclipse. I 
always build outside of my IDE, anyway...

There are newer versions of Eclipse. Current is Helios (3.6).  Good chance that 
at least some of your problems are fixed...

On Aug 11, 2010, at 7:28 AM, Vamsavardhana Reddy wrote:

> Hi,
> 
> After building the Geronimo 3.0 trunk, I see some errors shown in Eclipse 
> when I import the projects into workspace. The following are few such.
> 
> 1)
> Error: The blank final field parameterTypes may not have been initialized
> Source location: Line 82 in 
> geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java
> 
> The source line is
> private String[] types = (String[]) 
> parameterTypes.toArray(new String[parameterTypes.size()]);
> 
> Examining the source indicates that the field parameterTypes is very much 
> initialized. Also, there is no build error while building the project using 
> maven.

Seems like an Eclipse compiler bug.

> 
> 2)
> Error: The method getAllAppenders() is undefined for the type Logger
> Source location: Line 342 in 
> geronimo-pax-logging/src/main/java/org/apache/geronimo/logging/impl/Log4jService.java
> 
> The source line is
> for (Enumeration e = Logger.getRootLogger().getAllAppenders(); 
> e.hasMoreElements();) {
> 
> A similar error is shown with 7 other source lines in the same file

Either a compiler bug, or the wrong version of Logger is being used for the 
compilation (assuming there's a version of log4j where getAllAppenders() is not 
a valid Category/Logger method...

--kevan



Geronimo Server Trunk - Compilation Errors shown in Eclipse workspace

2010-08-11 Thread Vamsavardhana Reddy
Hi,

After building the Geronimo 3.0 trunk, I see some errors shown in Eclipse
when I import the projects into workspace. The following are few such.

1)
Error: The blank final field parameterTypes may not have been initialized
Source location: Line 82 in
geronimo-kernel/src/main/java/org/apache/geronimo/gbean/runtime/GBeanOperation.java

The source line is
private String[] types = (String[])
parameterTypes.toArray(new String[parameterTypes.size()]);

Examining the source indicates that the field parameterTypes is very much
initialized. Also, there is no build error while building the project using
maven.

2)
Error: The method getAllAppenders() is undefined for the type Logger
Source location: Line 342 in
geronimo-pax-logging/src/main/java/org/apache/geronimo/logging/impl/Log4jService.java

The source line is
for (Enumeration e = Logger.getRootLogger().getAllAppenders();
e.hasMoreElements();) {

A similar error is shown with 7 other source lines in the same file

Any idea how to get rid of these errors shown in Eclipse?
I am using Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 on
Windows XP SP3, with Sun JDK 1.6.0_20.

-- 
Vamsi