I have attached a patch, which resolves the compilation problem
cheers
</jima>
Jim Alateras wrote:
James,
There also a similar error in the parser module
[INFO]
----------------------------------------------------------------------------
[INFO] Building Abdera Parser
[INFO] task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\projects\app\abdera\parser\target
[INFO] Deleting directory C:\projects\app\abdera\parser\target\classes
[INFO] Deleting directory C:\projects\app\abdera\parser\target\test-classes
[INFO] [cobertura:clean {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 49 source files to C:\projects\app\abdera\parser\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\projects\app\abdera\parser\src\main\java\org\apache\abdera\parser\stax\FOMExtensibleElement.java:[210,39]
type parameters of <T>T
cannot be determined; no unique maximal instance exists for type
variable T with upper bounds T,org.apache.abdera.model.Element
cheers
</jima>
Sorry about that. Fixed in trunk.
- James
Jim Alateras wrote:
I am getting the following error building the core module
[INFO]
----------------------------------------------------------------------------
[INFO] Building Abdera Core
[INFO] task-segment: [clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\projects\app\abdera\core\target
[INFO] Deleting directory C:\projects\app\abdera\core\target\classes
[INFO] Deleting directory
C:\projects\app\abdera\core\target\test-classes
[INFO] [cobertura:clean {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 77 source files to C:\projects\app\abdera\core\target\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\projects\app\abdera\core\src\main\java\org\apache\abdera\model\ExtensibleElementWrapper.java:[106,40]
type parameters of <T>T can
not be determined; no unique maximal instance exists for type variable T
with upper bounds T,org.apache.abdera.model.Element
The source looks fine to me so was wondering whether anyone else has
come across this compilation error.
I am using maven and running java "1.5.0_09"
cheers
</jima>
Index:
C:/projects/app/abdera/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
===================================================================
---
C:/projects/app/abdera/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
(revision 565536)
+++
C:/projects/app/abdera/parser/src/main/java/org/apache/abdera/parser/stax/FOMExtensibleElement.java
(working copy)
@@ -207,7 +207,7 @@
public <T extends Element> T addExtension(QName qname, QName before) {
OMElement el = getFirstChildWithName(before);
- T element = getFactory().newElement(qname);
+ T element = (T)getFactory().newElement(qname);
if (el == null) {
addExtension(element);
} else {