jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
groovy
  • groovy
  • GROOVY-665

CVS at 200411210956

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0-beta-8
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

I am new to Groovy just thought I would try it. I downloaded 1.0-beta-7 and it installed fine. I came across bug Groovy-641 of course. This led me to try and build groovy from the CVS (to help me learn a bit about Maven). I used the maven command as given on the Web site and it seemed to work fine. However when it came to a build, I got an error. I am using JDK 1.5. I guess this problem is already known but I could find any reference to it via the JIRA search. Apologies if this is a duplicate.

507 elon:~/Progs/Other_CVS/groovy/groovy-core

> cvs update
508 elon:~/Progs/Other_CVS/groovy/groovy-core
> maven
__ __
\/ __ Apache_ ___
  \/ / ` \ V / -) ' \ ~ intelligent projects ~
_   _,_ _/___ _ _ v. 1.0.1

build:start:

clean:clean:
[delete] Deleting directory /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target

clean:

java:prepare-filesystem:
[mkdir] Created dir: /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target/classes

java:compile:
[echo] Compiling to /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target/classes
[javac] Compiling 299 source files to /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target/classes
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/main/groovy/lang/GroovyCodeSource.java:98: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match
info[1] = new CodeSource(file.toURI().toURL(), null);
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/main/groovy/util/AntBuilder.java:349: warning: [deprecation] createElement(org.apache.tools.ant.Project,java.lang.Object,java.lang.String) in org.apache.tools.ant.IntrospectionHelper has been deprecated
dataType = ih.createElement(getAntProject(), object, name.toLowerCase());
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/main/org/codehaus/groovy/classgen/AsmClassGenerator.java:3116: warning: [deprecation] setLastVariableIndex(int) in org.codehaus.groovy.classgen.BlockScope has been deprecated
scope.setLastVariableIndex(getNextVariableID());
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/main/org/codehaus/groovy/runtime/WritableFile.java:102: warning: compareTo(java.lang.Object) in org.codehaus.groovy.runtime.WritableFile overrides compareTo(java.lang.Object) in java.io.File; overridden method is a bridge method
public int compareTo(Object arg0) {
^
1 error
3 warnings

BUILD FAILED
File...... /home/users/russel/.maven/cache/maven-java-plugin-1.4/plugin.jelly
Element... ant:javac
Line...... 53
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 7 seconds
Finished at: Sun Nov 21 09:54:44 GMT 2004

509 elon:~/Progs/Other_CVS/groovy/groovy-core

> java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)
510 elon:~/Progs/Other_CVS/groovy/groovy-core
>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Artur Biesiadowski added a comment - 21/Nov/04 5:43 AM

Duplicate of GROOVY-621

Please check that bug for patch fixing the problem.

Show
Artur Biesiadowski added a comment - 21/Nov/04 5:43 AM Duplicate of GROOVY-621 Please check that bug for patch fixing the problem.
Hide
Permalink
Russel Winder added a comment - 21/Nov/04 6:23 AM

OK that fixes that problem, thanks. I searched for GroovySourceCode.java not GroovySourceCode.diff! However, I would have thought that should have been committed into the CVS already.

However, now I get:

test:compile:
[javac] Compiling 109 source files to /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target/test-classes
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:51: package org.apache.xalan.serialize does not exist
import org.apache.xalan.serialize.SerializerToXML;
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:73: cannot find symbol
symbol : class SerializerToXML
location: class groovy.xml.TestXmlSupport
protected SerializerToXML createSerializer() {
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:63: cannot find symbol
symbol : class SerializerToXML
location: class groovy.xml.TestXmlSupport
SerializerToXML printer = createSerializer();
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:75: cannot find symbol
symbol : class SerializerToXML
location: class groovy.xml.TestXmlSupport
SerializerToXML ser = new SerializerToXML();
^
/home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:75: cannot find symbol
symbol : class SerializerToXML
location: class groovy.xml.TestXmlSupport
SerializerToXML ser = new SerializerToXML();
^
5 errors

Show
Russel Winder added a comment - 21/Nov/04 6:23 AM OK that fixes that problem, thanks. I searched for GroovySourceCode.java not GroovySourceCode.diff! However, I would have thought that should have been committed into the CVS already. However, now I get: test:compile: [javac] Compiling 109 source files to /home/users/russel/Progs/Other_CVS/groovy/groovy-core/target/test-classes /home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:51: package org.apache.xalan.serialize does not exist import org.apache.xalan.serialize.SerializerToXML; ^ /home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:73: cannot find symbol symbol : class SerializerToXML location: class groovy.xml.TestXmlSupport protected SerializerToXML createSerializer() { ^ /home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:63: cannot find symbol symbol : class SerializerToXML location: class groovy.xml.TestXmlSupport SerializerToXML printer = createSerializer(); ^ /home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:75: cannot find symbol symbol : class SerializerToXML location: class groovy.xml.TestXmlSupport SerializerToXML ser = new SerializerToXML(); ^ /home/users/russel/Progs/Other_CVS/groovy/groovy-core/src/test/groovy/xml/TestXmlSupport.java:75: cannot find symbol symbol : class SerializerToXML location: class groovy.xml.TestXmlSupport SerializerToXML ser = new SerializerToXML(); ^ 5 errors
Hide
Permalink
Russel Winder added a comment - 07/Dec/04 4:49 AM

Initial problem was the missing cast, see Bug 621. Now fixed.

Second problem was that org.apache.xalan.serialize.SerializerToXML needed changing to org.apache.xml.serialize.XMLSerializer. This has been done in the main code but not in the test. No fixed.

Show
Russel Winder added a comment - 07/Dec/04 4:49 AM Initial problem was the missing cast, see Bug 621. Now fixed. Second problem was that org.apache.xalan.serialize.SerializerToXML needed changing to org.apache.xml.serialize.XMLSerializer. This has been done in the main code but not in the test. No fixed.

People

  • Assignee:
    Unassigned
    Reporter:
    Russel Winder
Vote (0)
Watch (0)

Dates

  • Created:
    21/Nov/04 5:05 AM
    Updated:
    16/Dec/04 11:43 AM
    Resolved:
    07/Dec/04 4:49 AM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.