Skip to content

Instantly share code, notes, and snippets.

@kpiwko
Created June 30, 2015 12:17
Show Gist options
  • Save kpiwko/f9bf4cc93cf146a26194 to your computer and use it in GitHub Desktop.
Save kpiwko/f9bf4cc93cf146a26194 to your computer and use it in GitHub Desktop.
Java Generics Fun
/Users/kpiwko/devel/mobile/ag/aerogear-unifiedpush-server-integration-tests/tests/integration/src/test/java/org/jboss/aerogear/unifiedpush/test/MessageSendTest.java:687: error: no suitable method found for with(InstallationWorker,Variant)
installations.addAll(ups.with(worker, variant).findAll().detachEntities());
^
method UnifiedPushServer.<ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1) is not applicable
(cannot infer type-variable(s) ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1
(actual and formal argument lists differ in length))
method UnifiedPushServer.<ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2) is not applicable
(inferred type does not conform to lower bound(s)
inferred: WORKER#3
lower bound(s): InstallationWorker)
method UnifiedPushServer.<REQUEST#1>with(REQUEST#1) is not applicable
(cannot infer type-variable(s) REQUEST#1
(actual and formal argument lists differ in length))
method UnifiedPushServer.<REQUEST#2>with(REQUEST#2) is not applicable
(cannot infer type-variable(s) REQUEST#2
(actual and formal argument lists differ in length))
where ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1,ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2,WORKER#3,CONTEXT#3,REQUEST#1,REQUEST#2 are type-variables:
ENTITY#1 extends Object declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
ENTITY_ID#1 extends Object declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
BLUEPRINT#1 extends ENTITY#1 declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
EDITOR#1 extends ENTITY#1 declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
PARENT#1 extends Object declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
CONTEXT#1 extends UPSContext<ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,WORKER#1,CONTEXT#1> declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
WORKER#1 extends UPSWorker<ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1> declared in method <ENTITY#1,ENTITY_ID#1,BLUEPRINT#1,EDITOR#1,PARENT#1,CONTEXT#1,WORKER#1>with(WORKER#1)
ENTITY#2 extends Object declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
ENTITY_ID#2 extends Object declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
BLUEPRINT#2 extends ENTITY#2 declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
EDITOR#2 extends ENTITY#2 declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
PARENT#2 extends Object declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
CONTEXT#2 extends UPSContext<ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,WORKER#2,CONTEXT#2> declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
WORKER#2 extends UPSWorker<ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2> declared in method <ENTITY#2,ENTITY_ID#2,BLUEPRINT#2,EDITOR#2,PARENT#2,CONTEXT#2,WORKER#2>with(WORKER#2,PARENT#2)
WORKER#3 extends UPSWorker<Object,Object,Object,Object,Variant,CONTEXT#3,WORKER#3>
CONTEXT#3 extends UPSContext<Object,Object,Object,Object,Variant,WORKER#3,CONTEXT#3>
REQUEST#1 extends SessionRequest<REQUEST#1> declared in method <REQUEST#1>with(REQUEST#1)
REQUEST#2 extends TestExtensionRequest<REQUEST#2> declared in method <REQUEST#2>with(REQUEST#2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment