| |||||
| Auteur | Sujet : BlaBlaTech@JAVA [ELITE, viendez les boobs] |
|---|---|
Publicité | Posté le 07-10-2010 à 17:03:49 ![]() ![]() |
brisssou 8-/ |
--------------- HFR - Mes sujets pour Chrome - Firefox - vérifie les nouveaux posts des topics suivis/favoris |
basketor63 Sarkozy en prison | il y a pas moyen de faire un sorte qu'un log.debug( ) affiche la methode et son numero de ligne même si il n'y pas d'exception ?
|
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
basketor63 Sarkozy en prison |
|
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
basketor63 Sarkozy en prison |
|
Publicité | Posté le 12-10-2010 à 14:17:31 ![]() ![]() |
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
masklinn í dag viðrar vel til loftárása |
Message cité 2 fois Message édité par masklinn le 12-10-2010 à 16:59:37 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Siluro |
|
basketor63 Sarkozy en prison |
Message cité 1 fois Message édité par basketor63 le 12-10-2010 à 17:33:33 |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
basketor63 Sarkozy en prison |
en théorie log4j permet de changer le niveau de log à chaud même si c'est pas recommandé
que ce soit une string ou un appel de méthode plus conséquent, le probleme c'est le principe de l'évaluation du code qui sera passé en parametre de log.debug( Object o ). par exemple log.debug( bidule.maFonctionQuiPrendTroisHeuresPourGenererLeResultatOuQuiVaMemeTaperEnBase() ) je me doute que tu le sais Message cité 2 fois Message édité par basketor63 le 12-10-2010 à 18:11:45 |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
basketor63 Sarkozy en prison |
Tu as raté le point dès le début en décidant de ne pas retenir le cas général de l'exemple, qui est l'évaluation de ce qui est passé en parametre.
ta question n'est pas claire ces infos de lignes il les obtient peut être du Thread.currentThread().getStacktrace() qui sera toujours à jour j'imagine mais j'en sais pas plus pour ma part Message édité par basketor63 le 12-10-2010 à 18:17:32 |
the real moins moins |
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
masklinn í dag viðrar vel til loftárása |
Et si arg1 est un gros callable qui fait 5 appels rpc, ben tu l'as dans le fion pareil. Message édité par masklinn le 12-10-2010 à 18:53:32 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
the real moins moins | oui, c'est juste bon pour éviter de la concat et du .toString() --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
84mickael | Le contenu de ce message a été effacé par son auteur |
84mickael | Le contenu de ce message a été effacé par son auteur |
el muchacho Comfortably Numb |
Message cité 1 fois Message édité par el muchacho le 12-10-2010 à 21:33:57 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
el muchacho Comfortably Numb | Oui c'est une bonne solution (pour ne pas dire LA bonne solution). De l'autre coté, tu récupères tes traces sur un processeur d'événements du style Esper ou StreamCruncher, et tu fais ce que tu veux avec. Message édité par el muchacho le 12-10-2010 à 21:47:56 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
DaMehdi |
|
TBone Qui vivum verrum; vroom vroom. |
--------------- A straight line is a special case of a curve. It's a curve which is uncurved. -- Susskind. |
DaMehdi |
|
brisssou 8-/ |
--------------- HFR - Mes sujets pour Chrome - Firefox - vérifie les nouveaux posts des topics suivis/favoris |
exhortae Membre du Cartel des Médecins |
|
el muchacho Comfortably Numb | Y'a OpenEJB aussi, mais ça reste une usine à gaz. Message édité par el muchacho le 14-10-2010 à 21:13:13 --------------- Les aéroports où il fait bon attendre, voila un topic qu'il est bien |
basketor63 Sarkozy en prison | malgré les générics pourquoi on peut pas, si B herite de A, faire simplement
|
nraynaud lol |
--------------- trainoo.com, c'est fini |
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
basketor63 Sarkozy en prison |
parceque tu peux faire
au final j'ai une liste de List<A> contenant des B MAIS en fait ce qui change c'est que la liste "la" en elle même est une instance de List<A> et en fait il y a aucune relation d'héritage entre List<A> et List<B> c'est ce qui fait que le cast est impossible apparement. il me semblait qu'on pouvait s'en sortir avec les trucs genre List<? extends A> mais je n'y arrive point edit : en fait plutot que faire une boucle on peut faire
Message cité 1 fois Message édité par basketor63 le 15-10-2010 à 15:19:49 |
zapan666 Tout est relatif |
--------------- my flick r - Just Tab it ! |
basketor63 Sarkozy en prison |
parceque B hérite de A donc List<A> peut contenir des A et des B, et List<B> seulement des B, par contre List<B> n'est pas une instance de List<A>, il y a pas de relation d'héritage, donc le cast marche pas
si t'as déjà fait maList = new ArrayList() avant oui évidement Message cité 1 fois Message édité par basketor63 le 15-10-2010 à 15:45:27 |
Publicité | Posté le ![]() ![]() |






