Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile problems #1

Open
oliverwehrens opened this issue Dec 30, 2009 · 1 comment
Open

Compile problems #1

oliverwehrens opened this issue Dec 30, 2009 · 1 comment

Comments

@oliverwehrens
Copy link

Hi,

I cloned the repo (12/30/2009) and out of the box it does not compile. I use a Mac with Snow Leopard.

Is there any other way to package or compile than the standard maven ones?

The compile output is like that:

[INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building selenium-dsl [INFO] task-segment: [compile] [INFO] ------------------------------------------------------------------------ [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /Users/SharedStuff/gits/selenium-dsl/src/main/resources [INFO] [compiler:compile {execution: default-compile}] [INFO] Compiling 85 source files to /Users/SharedStuff/gits/selenium-dsl/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[26,33] type parameters of X cannot be determined; no unique maximal instance exists for type variable X with upper bounds X,java.lang.Object

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[31,33] type parameters of I cannot be determined; no unique maximal instance exists for type variable I with upper bounds I,com.gargoylesoftware.htmlunit.html.HtmlInput

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[59,33] type parameters of I cannot be determined; no unique maximal instance exists for type variable I with upper bounds I,com.gargoylesoftware.htmlunit.html.HtmlInput

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[61,33] type parameters of E cannot be determined; no unique maximal instance exists for type variable E with upper bounds I,com.gargoylesoftware.htmlunit.html.HtmlElement

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[66,32] type parameters of E cannot be determined; no unique maximal instance exists for type variable E with upper bounds E,com.gargoylesoftware.htmlunit.html.HtmlElement

/Users/SharedStuff/gits/selenium-dsl/src/main/java/br/com/caelum/seleniumdsl/htmlunit/HtmlFormWrapper.java:[97,33] type parameters of I cannot be determined; no unique maximal instance exists for type variable I with upper bounds I,com.gargoylesoftware.htmlunit.html.HtmlInput

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Wed Dec 30 15:58:55 CET 2009
[INFO] Final Memory: 27M/527M
[INFO] ------------------------------------------------------------------------

@vandewilly
Copy link
Contributor

Hi,

Look at my fork. I added an explicity cast in my HtmlFormWrapper class. This happens when some method is generic and it calls another method that has a generic return type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants