|
ScrambledRK [ScrambledRK!~RK@80-110-107-100.cgn.dynamic.surfer.at] has joined ##java |
[12:11]
|
RazielZ [RazielZ!~Raziel@unaffiliated/raziel] has joined ##java |
[01:01]
|
istlf [istlf!istlf@gateway/vpn/mullvad/istlf] has joined ##java |
[01:14]
|
Intrepd_ [Intrepd_!~intrepd@pool-98-115-73-43.phlapa.fios.verizon.net] has joined ##java |
[01:20]
|
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java |
[01:23]
|
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java |
[01:29]
|
Xgc [Xgc!~Jon@98.1.126.42] has joined ##java |
[01:46]
|
average [average!uid473595@gateway/web/irccloud.com/x-kftgzjbwgakalewc] has joined ##java |
[01:48]
|
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java |
[02:26]
|
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java |
[02:33]
|
immibis [immibis!~immibis@62.156.144.218] has joined ##java |
[02:52]
|
aqd [aqd!~aqd@87-92-163-238.rev.dnainternet.fi] has joined ##java |
[02:53]
|
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined ##java |
[02:55]
|
aedroid [aedroid!~aedroid@89-181-227-120.net.novis.pt] has joined ##java |
[03:03]
|
mitch0 [mitch0!~mitch@178-164-190-1.pool.digikabel.hu] has joined ##java |
[03:19]
|
LKoen [LKoen!~LKoen@252.248.88.92.rev.sfr.net] has joined ##java |
[03:19]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c7390952fca35b4a28487713.dip0.t-ipconnect.de] has joined ##java |
[03:30]
|
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java |
[03:44]
|
mexen_office [mexen_office!~mexen@165.56.2.2] has joined ##java |
[03:48]
|
alexy [alexy!~alexy@gateway/tor-sasl/alexy] has joined ##java |
[03:58]
|
fabiim [fabiim!~fabiim@2a02:c7f:ea07:7a00:f176:22b1:b820:b7b7] has joined ##java |
[03:59]
|
fabiim [fabiim!~fabiim@2a02:c7f:ea07:7a00:f176:22b1:b820:b7b7] has joined ##java |
[04:03]
|
kafl [kafl!~kafl@unaffiliated/kafl] has joined ##java |
[04:03]
|
bolovanos__ [bolovanos__!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[04:04]
|
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-72-46.qld.foxtel.net.au] has joined ##java |
[04:05]
|
Bombe [Bombe!~bombe@freenet/developer/Bombe] has joined ##java |
[04:09]
|
Chai-T-Rex [Chai-T-Rex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java |
[04:11]
|
Chai-T-Rex [Chai-T-Rex!~ChaiTRex@gateway/tor-sasl/chaitrex] has joined ##java |
[04:14]
|
fabiim [fabiim!~fabiim@2a02:c7f:ea07:7a00:f176:22b1:b820:b7b7] has joined ##java |
[04:21]
|
Raging_Hog [Raging_Hog!~heikki@82-181-38-176.bb.dnainternet.fi] has joined ##java |
[04:29]
|
pioto [pioto!~pioto@unaffiliated/pioto] has joined ##java |
[04:43]
|
r3m1 [r3m1!~r3m1@abayonne-652-1-33-121.w86-222.abo.wanadoo.fr] has joined ##java |
[04:58]
|
r3m1 |
hello |
[04:58]
|
Alina-malina_ [Alina-malina_!~Alina-mal@unaffiliated/alina-malina] has joined ##java |
[04:58]
|
Alina-malina [Alina-malina!~Alina-mal@unaffiliated/alina-malina] has joined ##java |
[05:00]
|
pepa [pepa!~pepa@109.134.105.212] has joined ##java |
[05:07]
|
pepa |
anybody used criteriabuilder for making queries? |
[05:07]
|
mbooth |
anybody |
[05:08]
|
mbooth |
pepa, I'm sure somebody does, somewhere. But, if you've got a question, ask it anyway. |
[05:08]
|
r3m1 [r3m1!~r3m1@195-154-106-23.rev.poneytelecom.eu] has joined ##java |
[05:11]
|
Alina-malina [Alina-malina!~Alina-mal@unaffiliated/alina-malina] has joined ##java |
[05:19]
|
Alina-malina_ [Alina-malina_!~Alina-mal@unaffiliated/alina-malina] has joined ##java |
[05:27]
|
gelignite [gelignite!~gelignite@55d44adf.access.ecotel.net] has joined ##java |
[05:41]
|
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java |
[05:53]
|
luxstudio90 [luxstudio90!~luxstudio@185.40.63.204] has joined ##java |
[05:54]
|
qqqhhh |
hello in JDK16 records will be released, are the records a correct use case for storing objects with large number of fields (around 50) ? thanks. the syntax is that every component should be declared on one line. |
[05:58]
|
alexy_ [alexy_!~alexy@gateway/tor-sasl/alexy] has joined ##java |
[05:59]
|
Maldivia |
qqqhhh: records are immutable data classes -- if your type with the 50 fields is such, then sure |
[05:59]
|
qqqhhh |
Maldivia: thanks |
[06:01]
|
mbooth |
qqqhhh: The correct use case is "I need a immutable holder for data" -- number of fields is largely irrelevant |
[06:01]
|
Hatsjoe [Hatsjoe!~Hatsjoe@unaffiliated/hatsjoe] has joined ##java |
[06:01]
|
Maldivia |
public record Foo(int x, int y) {} is equivalent to public class Foo { private final int x; private final int y; public Foo(int x, int y) { this.x = x; this.y = y; } /*toString,equals,hashCode,accessorMethods*/ } |
[06:02]
|
mbooth |
Maldivia: Isn't it equiv to public *final* class Foo? |
[06:03]
|
Maldivia |
yes |
[06:03]
|
Maldivia |
was too lazy to correct myself :D |
[06:03]
|
mbooth |
-) |
[06:03]
|
qqqhhh |
Maldivia: if i have 50 fields will the declaration line be too long? i will have to newline after each field to make it readable |
[06:03]
|
Maldivia |
qqqhhh: you can break it up as well |
[06:04]
|
Maldivia |
public record Foo( |
[06:04]
|
Maldivia |
int x, |
[06:04]
|
qqqhhh |
yes that was what i meant |
[06:05]
|
qqqhhh |
will it be then possible to assemble records from json without going manually through all fields? |
[06:06]
|
qqqhhh |
the second question is not related to the first |
[06:06]
|
mbooth |
qqqhhh: A record is just a fancy pojo, how do you currently do it?? |
[06:06]
|
Maldivia |
jackson probably has support for that already |
[06:07]
|
qqqhhh |
mbooth: currently gson |
[06:07]
|
Maldivia |
jackson 2.12 support records |
[06:07]
|
Maldivia |
gson doesn't yet support records |
[06:08]
|
Maldivia |
without a handrolled deserializer |
[06:08]
|
qqqhhh |
Maldivia: interesting thanks |
[06:09]
|
enoq [enoq!~bernhard@2a02:8388:6ac1:c780:140:318f:2327:47a3] has joined ##java |
[06:09]
|
qqqhhh |
Maldivia: probably they are planning to support it would presume |
[06:09]
|
Maldivia |
there's an open ticket about it, yes |
[06:09]
|
Alina-malina [Alina-malina!~Alina-mal@unaffiliated/alina-malina] has joined ##java |
[06:10]
|
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined ##java |
[06:10]
|
nb-ben |
qqqhhh: if you have 50 fields in one type, it's likely you're joining a few types together, or you've exploded something that should be an array |
[06:11]
|
Maldivia |
nb-ben: naah, sometimes json objects are just that big |
[06:11]
|
nb-ben |
(by array I mean List, Map, etc) |
[06:11]
|
nb-ben |
I can theoretically accept this, though I doubt I'd ever witness something where I couldn't detect exploded types |
[06:12]
|
guacjack [guacjack!~textual@90.216.134.194] has joined ##java |
[06:12]
|
nb-ben |
or an exploded collection |
[06:12]
|
mbooth |
Absolute unit of a json object. |
[06:12]
|
nb-ben |
I suppose if you're supporting somebody else's API you wouldn't have much to do about this |
[06:13]
|
guacjack |
Hey all, what is the most commonly DateTimeFormatter to use when returning a stringified version of a date in say JSON? I was going to go with ISO_OFFSET_DATE_TIME |
[06:13]
|
Maldivia |
nb-ben: example with 36 fields: https://github.com/Sonarr/Sonarr/wiki/Series#returns-jsonarray |
[06:13]
|
Maldivia |
Maldivia's title: "Series · Sonarr/Sonarr Wiki · GitHub" |
[06:13]
|
qqqhhh |
nb-ben: currently the biggest class is 37 fields and do not repeat meaning |
[06:13]
|
Maldivia |
guacjack: ISO_INSTANT |
[06:14]
|
guacjack |
Maldivia whats the reasoning for using that over ISO_OFFSET_DATE_TIME ? |
[06:14]
|
guacjack |
Im currently doing DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(ZonedDateTime.now(ZoneOffset.UTC)) |
[06:15]
|
Maldivia |
guacjack: well, it really depends if you need to have the timezone info as part of the string or not ? |
[06:15]
|
guacjack |
It will always be in UTC |
[06:15]
|
Maldivia |
guacjack: if you are doing the above, then yeah, Instant.now().toString |
[06:15]
|
nb-ben |
Maldivia: that example can definitely be broken down |
[06:15]
|
kappa1 [kappa1!~kappa@unaffiliated/kappa1] has joined ##java |
[06:15]
|
nb-ben |
Maldivia: all of the ids can be combined into externalIds list, where each item has an ID type and the id itself for instance |
[06:16]
|
Maldivia |
nb-ben: sure it can, but you are not always in control of external APIs and can make that decision |
[06:16]
|
nb-ben |
Maldivia: network information along with persistence and rating can be also made into a type |
[06:16]
|
nb-ben |
yes, that I agree with |
[06:16]
|
kappa1 |
hi! I am getting "java.lang.NullPointerException: element cannot be mapped to a null key" here: data.stream().flatMap(Collection::stream).collect(groupingByConcurrent(Data::getValue, summingLong(Data::getCount))); |
[06:18]
|
Maldivia |
guacjack: the two formats are very similar, but if you're anyway going to use UTC, go with ISO_INSTANT, it already has UTC there (the Z at the end) |
[06:18]
|
nb-ben |
kappa1: one of the Data items has a null result from getValue |
[06:18]
|
kappa1 |
why the key can't be null if maps can have one null key |
[06:18]
|
Maldivia |
kappa1: Data.getValue returns null for one of your elements |
[06:18]
|
qqqhhh |
nb-ben: i could break it down too, but i think more parts would reduce readability |
[06:18]
|
pepa |
I posted the question in stackoverflow.... https://stackoverflow.com/questions/66349029/how-do-i-solve-this-hibernate-jpa-query |
[06:19]
|
kappa1 |
Maldivia, nb-ben yes, I want it to work with null keys |
[06:19]
|
Maldivia |
kappa1: concurrent hash map does not support null keys |
[06:19]
|
Maldivia |
kappa1: null keys is a giant smell also |
[06:20]
|
nb-ben |
^ |
[06:20]
|
farcas[regreg] [farcas[regreg]!~regreg@2a02:2f09:500f:f100:b62e:99ff:fece:9a50] has joined ##java |
[06:20]
|
kappa1 |
I see so perhaps I will use salting to fix that. |
[06:20]
|
Maldivia |
kappa1: that HashMap supports null keys is a fluke, most mp implementations doesn't |
[06:20]
|
Maldivia |
neither of TreeMap, ConcurrentHashMap, Hashtable supports null keys |
[06:21]
|
Maldivia |
also, the immutable maps (Map.of(k,v)) doesn't support null keys either |
[06:22]
|
nb-ben |
you should also avoid null to signal something other than that something isn't there or not found or doesn't exist |
[06:22]
|
nb-ben |
which might be why you're in this position now |
[06:23]
|
guacjack |
Maldivia thank you for your response. Im always going to UTC so will use that. So will Instant.now().toString do the same? |
[06:23]
|
henbruas [henbruas!~henbruas@unaffiliated/henbruas] has joined ##java |
[06:23]
|
Maldivia |
GingerGeek: Instant.now.toString() is equivalent to DateTimeFormatter.ISO_INSTANT.format(Instant.now()); |
[06:23]
|
Maldivia |
guacjack: ^ |
[06:24]
|
Maldivia |
javadoc Instant.toString() |
[06:24]
|
Maldivia |
Maldivia: https://bit.ly/2NQpLp7 [JDK: java.time.Instant#toString()]; https://bit.ly/2Wkiz6t [JDK: java.lang.Object#toString()]; https://bit.ly/2Wkiz6t [JDK: java.lang.Object#toString()] |
[06:24]
|
guacjack |
Thank you so much for the help |
[06:24]
|
kappa1 |
thanks for your help guys |
[06:25]
|
Maldivia |
guacjack: though it might be better for code readability to explicitly call the ISO_INSTANT.format() |
[06:25]
|
guacjack |
Any benefit to DateTimeFormatter.ISO_INSTANT.format(Instant.now()) over using DateTimeFormatter.ISO_INSTANT.format(ZonedDateTime.now()) ? |
[06:26]
|
Maldivia |
guacjack: ISO_INSTANT expects an Instant, so :D |
[06:27]
|
guacjack |
Ah it works with both |
[06:31]
|
Maldivia |
sure, because ZoneDateTime is basically an Instant+ZoneId |
[06:32]
|
guacjack |
I've gone with DateTimeFormatter.ISO_INSTANT.format(Instant.now()) |
[06:32]
|
guacjack |
thank you very much for your help |
[06:32]
|
yawkat |
with freemarker TemplateDirectiveModel, is there a way to escape text you write to env.out? |
[06:37]
|
forgottenone [forgottenone!~forgotten@176.42.20.136] has joined ##java |
[06:40]
|
zeden [zeden!~user@unaffiliated/zeden] has joined ##java |
[07:01]
|
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java |
[07:07]
|
mexen_office [mexen_office!~mexen@165.56.185.250] has joined ##java |
[07:09]
|
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-xqiuutmfxqpmwhnb] has joined ##java |
[07:13]
|
mexen_office [mexen_office!~mexen@165.56.185.250] has joined ##java |
[07:18]
|
BeRoots [BeRoots!4dc3c99e@158.201.195.77.rev.sfr.net] has joined ##java |
[07:19]
|
kafl [kafl!~kafl@unaffiliated/kafl] has joined ##java |
[07:20]
|
EveryOS [EveryOS!uid454739@gateway/web/irccloud.com/x-ihogwkutxelisdpq] has joined ##java |
[07:20]
|
alexy [alexy!~alexy@gateway/tor-sasl/alexy] has joined ##java |
[07:35]
|
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java |
[07:37]
|
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java |
[07:38]
|
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java |
[07:41]
|
g00s |
if i have a tight loop, does calling a method cause any performance / GC issues like allocating a lambda on each invocation |
[07:42]
|
yawkat |
sometimes, sometimes not |
[07:42]
|
yawkat |
go forth and profile |
[07:42]
|
pepa |
yawkat: they told me you are the jpa expert :-D can you please look at this question see if it sounds familiar? https://stackoverflow.com/questions/66349029/how-do-i-solve-this-hibernate-jpa-query |
[07:43]
|
georgios [georgios!~george@unaffiliated/anaphaxeton] has joined ##java |
[07:46]
|
sonOfRa |
pepa: are you resorting to just randomly highlighting people because noone is answering your questions? You already have little social capital here, and this is a *real* good way to burn what remains of it |
[07:49]
|
pepa |
I was told to ask him my question about jpa |
[07:49]
|
pepa |
I mean if he wants to answer |
[07:49]
|
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java |
[07:54]
|
MrFlibble [MrFlibble!Rimmer@94.14.182.161] has joined ##java |
[08:01]
|
GnarlyBob [GnarlyBob!~chris@unaffiliated/gnarlybob] has joined ##java |
[08:02]
|
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[08:04]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[08:09]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[08:18]
|
SuperTyp [SuperTyp!~supertyp@213.55.241.115] has joined ##java |
[08:19]
|
SuperTyp |
hi all |
[08:19]
|
SuperTyp |
I am having two security configs and one of them should use the BCryptPasswordEncoder, but this breaks the other config, is there a way to inject this not as a bean so that only config A is using it? |
[08:20]
|
georgios [georgios!~george@unaffiliated/anaphaxeton] has joined ##java |
[08:34]
|
llorllale [llorllale!~llorllale@2607:9880:1078:46:986b:fd45:1962:7ee7] has joined ##java |
[08:42]
|
pioto [pioto!~pioto@unaffiliated/pioto] has joined ##java |
[08:45]
|
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java |
[08:50]
|
mexen_home [mexen_home!~mexen@165.56.182.232] has joined ##java |
[09:02]
|
yottabyte |
question about the RabbitListener annotation: if you have concurrency set to something more than 1, is each message consumed in its own thread? so if I set some property, only that thread will have access to it? |
[09:03]
|
mexen_home [mexen_home!~mexen@165.56.182.232] has joined ##java |
[09:03]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c7390952fca35b4a28487713.dip0.t-ipconnect.de] has joined ##java |
[09:06]
|
Sgeo [Sgeo!~Sgeo@ool-18b98aa4.dyn.optonline.net] has joined ##java |
[09:08]
|
dreamreal |
morning |
[09:12]
|
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java |
[09:13]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[09:15]
|
CustosLimen |
hi, I am reading some data from YAML/JSON with jackson and I want to post-process it, but I need all the data to be present before post-processing |
[09:24]
|
CustosLimen |
what is the best approach for this? |
[09:24]
|
Maldivia |
CustosLimen, so deserialize to an object, process and store in another object? |
[09:25]
|
nashdev [nashdev!c7f72b06@199.247.43.6] has joined ##java |
[09:25]
|
CustosLimen |
Something like that, more like deserialize an object "tree", and then convert it to another object tree |
[09:25]
|
CustosLimen |
but yes |
[09:25]
|
CustosLimen |
I guess I can just do it by hand |
[09:25]
|
CustosLimen |
just wondering if there is some standard approach to doing it |
[09:26]
|
Maldivia |
what you're trying to do sounds very custom |
[09:26]
|
mitch0 |
there's MapStruct and DozerMapper and stuff like that. not sure it's worth it though |
[09:26]
|
Maldivia |
but yeah, bean mapping with converters in place |
[09:26]
|
CustosLimen |
MapStruct looks helpful |
[09:30]
|
mitch0 |
not sure it's easier than writing the mapping by hand... ymmv |
[09:30]
|
CustosLimen |
yeah, not sure either :), but I will see |
[09:31]
|
mlt_ [mlt_!~mlt-@unaffiliated/mlt-] has joined ##java |
[09:36]
|
cheeser |
deserialize to a Map. process. then deserialize the Map to your objects. |
[09:36]
|
Inline [Inline!~Inline@2a02:908:1252:7a80:89fc:2854:ea83:98ef] has joined ##java |
[09:50]
|
runlevel7 [runlevel7!runlevel7@gateway/vpn/privateinternetaccess/runlevel7] has joined ##java |
[09:54]
|
guacjack |
CustosLimen i think i would deserialise it, perform any validation on there or whatever and then create your new object from that validated object |
[10:06]
|
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java |
[10:08]
|
Smigwell [Smigwell!6057f801@96-87-248-1-static.hfc.comcastbusiness.net] has joined ##java |
[10:09]
|
istlf [istlf!~istlf@077213201174.dynamic.telenor.dk] has joined ##java |
[10:11]
|
istlf_ [istlf_!~istlf@s13490149139.blix.com] has joined ##java |
[10:12]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[10:13]
|
humanface [humanface!5400973d@5400973D.dsl.pool.telekom.hu] has joined ##java |
[10:14]
|
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java |
[10:22]
|
muhaha [muhaha!59b09477@gateway/web/cgi-irc/kiwiirc.com/ip.89.176.148.119] has joined ##java |
[10:29]
|
muhaha |
guys? is possible to generate codecoverage from junit ? i need cobertura format, or should use jacoco? or junit ( junit tests ) and jacoco for codecoverage? thanks |
[10:30]
|
muhaha |
gradle6 |
[10:30]
|
cheeser |
yes, it's possible. |
[10:31]
|
mbooth |
jacoco |
[10:32]
|
mbooth |
mbooth, jacoco is a free code coverage library for java from the eclemma team. See http://www.eclemma.org/jacoco/index.html |
[10:32]
|
mbooth |
Isn't cobertura dead or moribund? |
[10:32]
|
mbooth |
cobertura |
[10:32]
|
mbooth |
mbooth, what does that even *mean*? |
[10:32]
|
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java |
[10:32]
|
BluesBoy [BluesBoy!~bboy@stotz2.com] has joined ##java |
[10:36]
|
muhaha |
gitlab needs cobertura format as input for its codecoverage widged |
[10:36]
|
mbooth |
Then use cobertura |
[10:37]
|
mbooth |
Jacoco may even support cobertura formats though, I just read it was originally designed to supercede both emma and cobertura |
[10:47]
|
muhaha |
Not sure how to export it as cobertura format.. |
[10:48]
|
muhaha |
I am using this https://docs.gitlab.com/ee/user/project/merge_requests/test_coverage_visualization.html#gradle-example |
[10:49]
|
muhaha |
Not sure where is sourcecode for that python script tho |
[10:49]
|
kupi [kupi!uid212005@gateway/web/irccloud.com/x-eebherdsvusazjal] has joined ##java |
[10:57]
|
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java |
[10:59]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[11:05]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[11:15]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[11:15]
|
muhaha |
Nope https://github.com/jacoco/jacoco/issues/1114 |
[11:16]
|
muhaha |
muhaha's title: "Feature: Support Cobertura output format for coverage · Issue #1114 · jacoco/jacoco · GitHub" |
[11:16]
|
deavmi [deavmi!~tbk@2a04:5b81:2010::33] has joined ##java |
[11:23]
|
fabiim [fabiim!~fabiim@2a02:c7f:ea07:7a00:f176:22b1:b820:b7b7] has joined ##java |
[11:27]
|
karab44 [karab44!~karab44@unaffiliated/karab44] has joined ##java |
[11:43]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[11:47]
|
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-xfxeeejhmtblxsmq] has joined ##java |
[11:47]
|
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java |
[11:49]
|
hnOsmium0001 [hnOsmium0001!uid453710@gateway/web/irccloud.com/x-gewvwhbittubyvln] has joined ##java |
[11:49]
|
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java |
[11:57]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[11:58]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[11:58]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[12:08]
|
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java |
[12:25]
|
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java |
[12:30]
|
nyxyn [nyxyn!~nyxyn@2600:1700:3db0:2540:c6:39f0:e1b5:35b6] has joined ##java |
[12:39]
|
Xiti [Xiti!~Xiti-@unaffiliated/xiti] has joined ##java |
[12:40]
|
mexen_office [mexen_office!~mexen@165.56.185.250] has joined ##java |
[12:43]
|
hussam [hussam!~hussam@unaffiliated/hussam] has joined ##java |
[12:45]
|
gelignite [gelignite!~gelignite@55d44adf.access.ecotel.net] has joined ##java |
[12:52]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[12:52]
|
alexy [alexy!~alexy@gateway/tor-sasl/alexy] has joined ##java |
[01:01]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[01:04]
|
enoq parted the channel: |
[01:24]
|
postbloc [postbloc!6391bb64@99-145-187-100.lightspeed.iplsin.sbcglobal.net] has joined ##java |
[01:27]
|
postbloc |
I'm using JNI to create a JVM from C++, what's the best way to get System.out output from the JVM to appear in the host console? |
[01:29]
|
cheeser |
i've literally never used JNI so i have no idea. |
[01:30]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[01:35]
|
postbloc |
I think I'll need to call System.setOut at some point but I don't know what to pass it |
[01:36]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[01:44]
|
leotaku [leotaku!~leotaku@046207190200.atmpu0030.highway.a1.net] has joined ##java |
[01:50]
|
nashdev [nashdev!c7f72b06@199.247.43.6] has joined ##java |
[01:58]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[02:01]
|
leotaku |
Heyo, I always hear that one thing that sets Java apart from other programming languages is the amazing IDE and automatic refactoring support. Now I have never worked on a real-world Java project so would one of you guys maybe be interested in telling me about the best/most impressive Java+IDE feature which is not possible with other languages? Thanks! |
[02:01]
|
farcas[regreg] [farcas[regreg]!~regreg@2a02:2f09:500f:f100:b62e:99ff:fece:9a50] has joined ##java |
[02:03]
|
bolovanos__ [bolovanos__!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[02:05]
|
droid3 [droid3!2f0ea8d8@047-014-168-216.res.spectrum.com] has joined ##java |
[02:05]
|
Techcable [Techcable!~Techcable@ip70-190-28-14.ph.ph.cox.net] has joined ##java |
[02:10]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[02:11]
|
postbloc |
leotaku here's an in-depth example in IntelliJ showing multiple refactorings https://www.jetbrains.com/help/idea/replace-conditional-logic-with-strategy-pattern.html I dunno about "not possible" in other languages... |
[02:12]
|
nashdev [nashdev!c7f72b06@199.247.43.6] has joined ##java |
[02:16]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[02:16]
|
Hallcyon [Hallcyon!~Hallcyon@116-255-6-3.ip4.superloop.com] has joined ##java |
[02:17]
|
moldorcoder7 [moldorcoder7!~moldorcod@206.166.251.59] has joined ##java |
[02:19]
|
seschwar [seschwar!~seschwar@unaffiliated/seschwar] has joined ##java |
[02:26]
|
SirMangler [SirMangler!~SirMangle@host31-50-223-160.range31-50.btcentralplus.com] has joined ##java |
[02:29]
|
nashdev parted the channel: |
[02:30]
|
long4mud [long4mud!~u0_a254@rrcs-75-87-43-226.sw.biz.rr.com] has joined ##java |
[02:34]
|
leotaku |
postbloc: Thanks. I think it's fair to say that this level of automatic refactoring is not currently possible with most other languages, is it not? |
[02:35]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[02:37]
|
[[1g01wk]] [[[1g01wk]]!~1g01wk@adtj2.neoplus.adsl.tpnet.pl] has joined ##java |
[02:39]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[02:47]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[02:47]
|
luxstudio90 [luxstudio90!~luxstudio@46.166.143.123] has joined ##java |
[02:50]
|
Nightwing52 [Nightwing52!~Thunderbi@67.7.4.167] has joined ##java |
[02:54]
|
aedroid [aedroid!~aedroid@89-181-227-120.net.novis.pt] has joined ##java |
[02:57]
|
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java |
[02:57]
|
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c73909529c208343cf3ed1b3.dip0.t-ipconnect.de] has joined ##java |
[03:17]
|
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java |
[03:17]
|
led1 [led1!~Thunderbi@217.66.160.14] has joined ##java |
[03:27]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[03:29]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[03:35]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[03:39]
|
DTZUZU [DTZUZU!~DTZUZU@205.ip-149-56-132.net] has joined ##java |
[03:42]
|
[[1g01wk]] |
hi, i wonder, why cpu utilisation reported by visualvm could be different from cpu utilisation reported by top? |
[04:06]
|
[[1g01wk]] |
We've an app that says 80% utilisation in top but when we connect using jconsole or jfr it never above 20 |
[04:07]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[04:08]
|
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[04:11]
|
dec0d3r [dec0d3r!~dec0d3r@2001:8003:4808:9000:5f63:4185:4213:fdf7] has joined ##java |
[04:12]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[04:21]
|
mizi [mizi!~mizi@p200300ecf70719006943bae37d984647.dip0.t-ipconnect.de] has joined ##java |
[04:37]
|
hschmale [hschmale!hschmale@otaku.sdf.org] has joined ##java |
[04:44]
|
leotaku |
Maybe just all core vs single core utilization? 20*4=80, so this would make sense if you are using a 4 core machine. |
[04:52]
|
leotaku |
[[1g01wk]] ^ |
[04:52]
|
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java |
[04:54]
|
DTZUZU [DTZUZU!~DTZUZU@205.ip-149-56-132.net] has joined ##java |
[05:05]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[05:13]
|
ricky_clarkson |
leotaku: Most other typed mainstream langs are comparable in terms of refactoring. |
[05:25]
|
ricky_clarkson |
Maybe Java is a bit more polished than most, but not massively. |
[05:26]
|
[[1g01wk]] |
yes this might make sense |
[05:33]
|
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java |
[05:47]
|
droid3 [droid3!2f0ea8d8@047-014-168-216.res.spectrum.com] has joined ##java |
[05:48]
|
whoever [whoever!~trevor@unaffiliated/whoever] has joined ##java |
[05:52]
|
whoever |
hi all |
[05:52]
|
whoever |
is one better than another ? gradle /maven |
[05:53]
|
dreamreal |
yes |
[05:54]
|
whoever |
and what would you say |
[05:54]
|
whoever |
I was getting ready to start with gradle , am I wrong |
[05:54]
|
dreamreal |
It depends on what your build needs to do. |
[05:54]
|
whoever |
pull /build dependancies |
[05:55]
|
dreamreal |
If it's a trivial build, well, gradle has a smoother on-ramp: apply the java plugin, add dependencies, it's pretty easy to do. But gradle shines when your build is generally flat and trivial; when you start adding plugins, well, gradle can get hairy REALLY quickly. |
[05:56]
|
dreamreal |
IN GENERAL I'd go maven before gradle; it's more verbose but also more consistent. |
[05:58]
|
dreamreal |
And if your build needs imperative processes - which isn't the case from what you're describing - gradle's the way to go. |
[05:58]
|
whoever |
ok, with eclipse do i need any plugins or is it all standalone installs |
[05:59]
|
dreamreal |
I think m2eclipse is standard, not sure about gradle, not an eclipse user |
[05:59]
|
jess [jess!jess@freenode/staff/jess] has joined ##java |
[06:01]
|
whoever |
dreamreal: thank you for the help |
[06:03]
|
dreamreal |
no problem |
[06:04]
|
DigitalMichael [DigitalMichael!~dm@066-169-156-070.res.spectrum.com] has joined ##java |
[06:04]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[06:06]
|
whoever |
dreamreal: i assume this would be a standard question, does it mapper under what tag dependancies go or just any where in the project tag |
[06:07]
|
dreamreal |
whoever: you mean is the build file ORDERED? I think not |
[06:10]
|
bolovanos [bolovanos!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[06:12]
|
tbcr parted the channel: |
[06:17]
|
bolovanos_ [bolovanos_!~bolovanos@unaffiliated/bolovanos] has joined ##java |
[06:21]
|
runlevel7_ [runlevel7_!~runlevel7@unaffiliated/runlevel7] has joined ##java |
[06:27]
|
LikMask [LikMask!~LikMask@92-33-176-163.customers.ownit.se] has joined ##java |
[06:28]
|
whoever |
Is depencies a valid element in the pom.xml , I thought it was |
[06:31]
|
dreamreal |
dependencies, yes |
[06:32]
|
dreamreal |
you DO have to spell it properly |
[06:32]
|
whoever |
dependencies invalid element name |
[06:34]
|
dreamreal |
show us |
[06:34]
|
dreamreal |
Paste the code (and any errors) in a pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems. |
[06:34]
|
whoever |
https://bpa.st/OL6TQ |
[06:37]
|
dreamreal |
note that you have dependencies IN the build node, and that's not where it goes |
[06:37]
|
dreamreal |
move lines 18-24 to after </build> or before <build> |
[06:38]
|
whoever |
ok, so depenciencies go outside of build |
[06:38]
|
dreamreal |
yes |
[06:38]
|
whoever |
thanks again is there a good dependencies site get get all the dep markup at |
[06:42]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[06:42]
|
dreamreal |
mvnrepository.com |
[06:42]
|
dreamreal |
it'll even give you copy/paste content for the dependency |
[06:42]
|
dreamreal |
later |
[06:42]
|
whoever |
is that site also accessable from the plugin you listed earler |
[06:43]
|
sevengraff [sevengraff!~sevengraf@2601:640:4100:30a:a157:b3c3:79a9:fc2a] has joined ##java |
[06:44]
|
droid377 [droid377!2f0ea8d8@047-014-168-216.res.spectrum.com] has joined ##java |
[06:56]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[07:01]
|
tang^ |
it's easier to do it manually with that sight and raw xml than to let Eclipse handle it for you |
[07:03]
|
whoever |
tang^: ya, buut, this way save a whole 2 seconds |
[07:10]
|
tang^ |
all I know is I have to keep removing the m2e stuff from my maven projects when I work on them |
[07:11]
|
dansan_ [dansan_!~daniel@75.81.148.51] has joined ##java |
[07:12]
|
whoever |
well, don't let it auto resolve depencies for you |
[07:14]
|
MrFlibble parted the channel: |
[07:56]
|
rzjian [rzjian!~l@14.123.252.70] has joined ##java |
[08:01]
|
mlt` [mlt`!~mlt-@unaffiliated/mlt-] has joined ##java |
[08:15]
|
orbyt_ [orbyt_!~orbyt@172.92.4.78] has joined ##java |
[08:23]
|
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java |
[08:24]
|
nikow [nikow!~nikow@2001:41d0:601:1100::462] has joined ##java |
[08:24]
|
cheeser |
i use search.maven.org for all that. |
[08:26]
|
gambl0re [gambl0re!~rickyjw@unaffiliated/gambl0re] has joined ##java |
[08:40]
|
gambl0re |
hello? |
[08:40]
|
dqx_ [dqx_!~dqx@unaffiliated/dqx] has joined ##java |
[08:48]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[08:50]
|
wordsToLiveBy [wordsToLiveBy!~wordsToLi@unaffiliated/wordstoliveby] has joined ##java |
[08:51]
|
db [db!uid18678@gateway/web/irccloud.com/x-iiuxhusevdaodbcc] has joined ##java |
[08:59]
|
cheeser |
hello |
[09:09]
|
cheeser |
gambl0re, https://media.giphy.com/media/Y8ocCgwtdj29O/giphy.gif |
[09:09]
|
gambl0re |
is this channel still active? |
[09:09]
|
cheeser |
do you have an actual question? |
[09:09]
|
waz [waz!~waz@pdpc/supporter/active/waz] has joined ##java |
[09:14]
|
nyxyn [nyxyn!~nyxyn@2600:1700:3db0:2540:c6:39f0:e1b5:35b6] has joined ##java |
[09:22]
|
callq parted the channel: |
[09:23]
|
Goplat [Goplat!~Goplat@reactos/developer/Goplat] has joined ##java |
[09:24]
|
Xiti [Xiti!~Xiti-@unaffiliated/xiti] has joined ##java |
[09:42]
|
AndroidDAW [AndroidDAW!~AndroidDA@cpe-172-193-72-46.qld.foxtel.net.au] has joined ##java |
[10:29]
|
Keridos [Keridos!~Keridos@static.56.72.76.144.clients.your-server.de] has joined ##java |
[10:55]
|
EgonX [EgonX!~Egon@2601:2c6:47f:87a8:d479:50b4:9a59:5500] has joined ##java |
[11:00]
|
Cuckoo [Cuckoo!Cuckoo@unaffiliated/cuckoo] has joined ##java |
[11:02]
|
_Warl0ck [_Warl0ck!~warl0ck@c-73-83-145-12.hsd1.wa.comcast.net] has joined ##java |
[11:03]
|
Orlando^ [Orlando^!~kenny@178.74.16.236] has joined ##java |
[11:04]
|
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java |
[11:07]
|
GnarlyBob [GnarlyBob!~chris@unaffiliated/gnarlybob] has joined ##java |
[11:07]
|
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java |
[11:14]
|
infinite_loop [infinite_loop!~rkeim@160-2-131-3.cpe.sparklight.net] has joined ##java |
[11:33]
|
Keridos parted the channel: "The Lounge - https://thelounge.chat" |
[11:48]
|