Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:21:38+00:00 2026-06-10T21:21:38+00:00

Update: this seems to be Eclipse-related, rather than Hudson-related so I updated the question

  • 0

Update: this seems to be Eclipse-related, rather than Hudson-related so I updated the question accordingly.

I’m getting some compiler errors when running Maven on the command line, but all developers in our group has the code working fine in Eclipse (some Generic intricacies, see below for details). How could this differ and what to do about it?

The code that fails looks like this:

299 private <T extends ProductClassDTO> List<T> convertProductClass(List<? extends ProductClassDTO> fromList) {
300     List<T> toList = new ArrayList<T>();
301     for (ProductClassDTO from : fromList) {
302         T to = convert(from);
303         toList.add(to);
304     }
305     return toList;
306 }

this is the error on build server:

[ERROR] ...java:[302,26] type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T with upper bounds T,com.volvo.protom.util.dto.ProductClassDTO

(I know there are other questions+answers on this in SO, but they don’t seem to apply to this particular question, since changing to T to = <T>convert(from) doesn’t work, perhaps I should do something else?) I’m guessing the error refers to that there are several convert methods in this class, and more than one fit?

Thanks!

Update 2: these are the convert signatures:

private void convert(TestObjectDTO from, TestObjectDTO to);
private <T extends TestObjectDTO> T convert(TestObjectDTO from);
private void convert(ProductClassDTO from, ProductClassDTO to);
private <T extends ProductClassDTO> T convert(ProductClassDTO from);
private void convert(TestObjectTypeDTO from, TestObjectTypeDTO to);
private <T extends TestObjectTypeDTO> T convert(TestObjectTypeDTO from);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:21:40+00:00Added an answer on June 10, 2026 at 9:21 pm

    The Eclipse and JDK javac are slightly different, see @maximdim‘s comment. Always run from the command-line to ensure compatibility (though Eclipse’s javac seems more correct).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Update: This is, as I was told, no principle Python related problem, but seems
Update : The error seems to be generated by this line: *line = color;
UPDATE: I've been playing around with this more, and it seems like tmux's clear-history
UPDATE: This question is out of date, but left for informational purposes. Original Question
Update: This question was an epic failure, but here's the working solution. It's based
Update: This question is a duplicate of Are there any programming languages targeting PHP,
This is (I think) related to eclipse helios for PHP - code formatter not
I'm running Eclipse under CentOS, and would like to use Subclipse rather than keep
This is a general question but I'll illustrate it with Eclipse. I recently reinstalled
UPDATE: After searching a bit I don't seem to be alone about this problem:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.