Info

Login

Channels

APIs

Credits

  • cheeser
  • ernimril
  • joed
  • kinabalu
  • lunk
  • ojacobson
  • r0bby
  • ThaDon
  • ricky_clarkson
  • topriddy

« 2020-09-14

2020-09-15

2020-09-16 »

Nick Message Date
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [12:00]
justache [justache!~justache@unaffiliated/justache] has joined ##java [12:01]
g00s_ [g00s_!~g00s@unaffiliated/g00s] has joined ##java [12:02]
Ischwitch [Ischwitch!~Ingvix@2001:999:60:a982:baae:edff:fe7f:87a9] has joined ##java [12:04]
deavmi [deavmi!~tbk@165.255.253.147] has joined ##java [12:06]
th_ [th_!~th@unaffiliated/th-/x-5048110] has joined ##java [12:10]
Xgc [Xgc!~Jon@98.1.126.42] has joined ##java [12:13]
justache [justache!~justache@unaffiliated/justache] has joined ##java [12:28]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [12:50]
Sgeo_ [Sgeo_!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [01:17]
[[thufir]] [[[thufir]]!~thufir@208.110.107.226] has joined ##java [01:19]
TideFN [TideFN!~TideFN@2601:cb:8001:7d90:3977:ab8c:7b24:130f] has joined ##java [01:19]
qbit2821 [qbit2821!~Thunderbi@82-209-145-120.cust.bredband2.com] has joined ##java [01:27]
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java [01:31]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [01:39]
fattest [fattest!77120311@119-18-3-17.771203.syd.nbn.aussiebb.net] has joined ##java [01:42]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [01:50]
bocaneri [bocaneri!sauvin@about/linux/staff/sauvin] has joined ##java [01:52]
ScrambledRK [ScrambledRK!~RK@80-110-99-125.cgn.dynamic.surfer.at] has joined ##java [01:57]
fattest pastebin [02:02]
fattest Please paste your code and any errors online. For runnable classes, try https://ideone.com/ . For general code and errors, use https://gist.github.com or https://dpaste.org/ [02:02]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [02:03]
fattest Hi. I'm trying to find and replace part of Path object. Is it possible without converting it to a String first? https://ideone.com/ZGU4Ia [02:03]
TideFN [TideFN!~TideFN@2601:cb:8001:7d90:a418:669d:352b:833a] has joined ##java [02:05]
ScrambledRK fattest: you can use: expected = find.resolve( wholePath.getFileName() ) [02:06]
ScrambledRK or something similar ... point is path has some handy methods you should use [02:07]
[[thufir]] [[[thufir]]!~thufir@208.110.107.226] has joined ##java [02:08]
fattest hmm [02:08]
fattest ScrambledRK nop, that won't work. that returns /usr/animals/data/donkey/data.txt when I want /usr/animals/data/sym4/data.txt [02:08]
_lucifer i think ScrambledRK meant replace.resolve [02:10]
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java [02:12]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [02:16]
zikani03 [zikani03!~zikani03@41.75.123.113] has joined ##java [02:19]
pppingme [pppingme!~pppingme@unaffiliated/pppingme] has joined ##java [02:23]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [02:31]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [02:44]
mizux [mizux!~mizux@2a01cb0087e88700b9ac9c2fbea68b7d.ipv6.abo.wanadoo.fr] has joined ##java [02:46]
hinst [hinst!~hinst@80.156.25.59] has joined ##java [02:51]
afroboy [afroboy!~afroboy@unaffiliated/afroboy] has joined ##java [02:53]
cliluw [cliluw!~cliluw@unaffiliated/cliluw] has joined ##java [02:55]
Matthijs [Matthijs!~quassel@unaffiliated/matthijs] has joined ##java [02:59]
Zednan [Zednan!~zednan@62-2-197-50.static.cablecom.ch] has joined ##java [02:59]
exonity01 [exonity01!uid364582@gateway/web/irccloud.com/x-gwjbqhrvswgpapva] has joined ##java [03:08]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [03:10]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [03:13]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [03:16]
FabioP [FabioP!c378570d@host-195-120-87-13.business.telecomitalia.it] has joined ##java [03:21]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [03:30]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [03:31]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [03:41]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [03:46]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [04:00]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [04:01]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [04:08]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [04:20]
millido [millido!~millido@96.37-191-135.fiber.lynet.no] has joined ##java [04:26]
wenijinew [wenijinew!~wenijinew@c83-248-21-105.bredband.comhem.se] has joined ##java [04:31]
immibis [immibis!~immibis@x2e722671.dyn.telefonica.de] has joined ##java [04:45]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [04:50]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [04:55]
Gerula_ [Gerula_!~Gerula@unaffiliated/gerula] has joined ##java [05:06]
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java [05:09]
k5__ [k5__!~k5@2001:16b8:2d04:a700:25f4:312c:8985:3e06] has joined ##java [05:10]
Anticom [Anticom!~Anticom@87.190.49.75] has joined ##java [05:17]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [05:17]
rymate1234 [rymate1234!~rymate@too.cool.for.ipv4.at.rymate.co.uk] has joined ##java [05:22]
vqrs [vqrs!~vqrs@learnprogramming/regular/vqrs] has joined ##java [05:29]
Ingvix [Ingvix!~Ingvix@2001:999:42:13b5:baae:edff:fe7f:87a9] has joined ##java [05:36]
Inline [Inline!~Inline@2a02:908:1252:7a80:e4ba:7c91:82af:ca81] has joined ##java [05:41]
dreamreal morning [05:43]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [05:49]
asy [asy!~asymptoti@gateway/tor-sasl/asymptotically] has joined ##java [05:51]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [05:53]
_lucifer I am looking at a QueryResponseWriter written using JAXB (one for XML and JSON each) to parse responses from Apache Solr Server. It seems that it requires substantial changes to fix some issues. Is it worth to rewrite it using Jackson instead of JAXB ? [05:55]
dreamreal is it part of a library, or your code? [05:55]
_lucifer an open source project i am contributing to but its end user product so that should fall in my code probably [05:56]
dreamreal well, file an issue, file a PR, if jaxb's API is the source of problems, I'd say "yes" [05:57]
sa02irc [sa02irc!~mbax@155-079-043-212.ip-addr.inexio.net] has joined ##java [05:59]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c736582344bfcff4bb4e671b.dip0.t-ipconnect.de] has joined ##java [05:59]
FabioP [FabioP!c378570d@host-195-120-87-13.business.telecomitalia.it] has joined ##java [05:59]
Me4502 [Me4502!~quassel@unaffiliated/me4502] has joined ##java [06:01]
SirMangler [SirMangler!~SirMangle@host31-50-223-212.range31-50.btcentralplus.com] has joined ##java [06:01]
johnau [johnau!~johnau@123-243-163-120.static.tpgi.com.au] has joined ##java [06:03]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [06:04]
_lucifer i think it might be but i'll try to explore and see if i am missing something [06:05]
dodobrain [dodobrain!~dodobrain@unaffiliated/freakabcd] has joined ##java [06:05]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [06:06]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [06:07]
dreamreal I've never used jaxb when I could use jackson instead [06:07]
_lucifer just curious, what would be that use case (where jackson could not be used) ? [06:08]
dreamreal I don't know [06:08]
dreamreal I mean, maybe before jackson took over? I used xstream before jackson :) [06:08]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [06:18]
lithium [lithium!~lithium@unaffiliated/lithium] has joined ##java [06:19]
xeno anyone here got experience with WebDriver? I have some tests using it, and now they're failing because it tries to check releases on github [06:22]
vngx [vngx!~vngx@c-73-33-132-63.hsd1.nj.comcast.net] has joined ##java [06:35]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [06:46]
Maldivia Happy JDK 15 release day everyone! [06:47]
mindCrime [mindCrime!~prhodes@2606-a000-112a-8159-ea44-563a-99f1-db26.inf6.spectrum.com] has joined ##java [06:48]
mbooth Maldivia: When will my quinceañera invitation arrive? [06:49]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [06:49]
dka I have a sms integration in java (spring) for sms factor service. It use retrofit2. I want to use a different sms service with a different api. Is there a way using the retrofit interface to tweak it a little bit with java code? [06:51]
dka Basically, I want to convert shortlinks placeholder with real shortling (using an external shortlink service) before sending the sms [06:51]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [06:51]
yawkat Maldivia: huh, is jdk-updates still on hg [06:57]
Maldivia jdk/jdk is on github now, jdk15 release is on hg [06:57]
Maldivia jdk11 is also still hg [06:57]
yawkat are they planning to move jdku to github? [06:58]
yawkat probably not for old versions? [06:58]
Maldivia jdk-updates is planned as well, yes [07:00]
Maldivia but not jdk8 [07:00]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [07:02]
Maldivia yawkat: according to https://openjdk.java.net/jeps/369 -- all single-repos are mentioned, but not multi-repo, like jdk8u [07:10]
Maldivia Maldivia's title: "JEP 369: Migrate to GitHub" [07:10]
Maldivia yawkat: a bit weird having this as a JEP, that is tied to a release vis fix version, since this is not something that's a single release... [07:13]
yawkat the get_source ones? fair enough [07:13]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [07:22]
mz| [mz|!~mz@unaffiliated/mz/x-1545692] has joined ##java [07:23]
somazero [somazero!~somazero@ip68-229-109-35.hr.hr.cox.net] has joined ##java [07:24]
somazero [somazero!~somazero@ip68-229-109-35.hr.hr.cox.net] has joined ##java [07:25]
nullus [nullus!d4fb6b53@givos1.ath.forthnet.gr] has joined ##java [07:26]
LKoen [LKoen!~LKoen@81.255.219.130] has joined ##java [07:26]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [07:27]
nullus I just added a value to an existing enum and when I am trying to reference it from another class i get "symbol not found". It is a maven project which I have saved and clean built [07:29]
dreamreal show us [07:29]
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. [07:29]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [07:29]
nullus public class BarcodeBeanConfig implements Serializable { public enum BarcodeType { EAN13, CODE128, INTERLEAVED2OF5; } ...} [07:31]
nullus final BarcodeBeanConfig barcodeConfig = new BarcodeBeanConfig( BarcodeBeanConfig.BarcodeType.INTERLEAVED2OF5, ...); <- symbol not found [07:31]
nullus i hope it appears clear [07:31]
zeden [zeden!~user@unaffiliated/zeden] has joined ##java [07:31]
mindCrime [mindCrime!~prhodes@2606-a000-112a-8159-ea44-563a-99f1-db26.inf6.spectrum.com] has joined ##java [07:33]
reynir [reynir!~reynir@unaffiliated/reynir] has joined ##java [07:36]
dreamreal not really sure what to tell you; I just created pretty much THAT code with BarcodeBeanConfig in one package and the usage in another, and it worked fine for me [07:38]
dreamreal autocompletion worked, IDEA suggested fixes and issues as expected (my sandbox doesn't cover or use much of it, obv) [07:39]
CombatVet [CombatVet!~c4@gateway/tor-sasl/combatvet] has joined ##java [07:39]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [07:39]
nullus Thank you very much for your time, after I delete .m2 repository it finds it but after a while it gets red again and the build breaks... could it be Netbeans?? [07:40]
dreamreal wtf, why are y.. of course it could [07:40]
dreamreal man, lots of people seem to be using netbeans these days [07:40]
dreamreal I dunno, honestly, it'd be surprising but then again, someone using netbeans itself is surprising [07:41]
nullus hehe, it's my works standard unfortunately, I am experimenting with emacs and lsp-java but debugging is not viable there yet [07:44]
dreamreal your work has a standard? And they chose NETBEANS? I'd... install netbeans then and then use something good [07:44]
dreamreal (emacs and lsp-java - whatever THAT is - aren't likely to be it. Install eclipse or IDEA.) [07:44]
dreamreal oh, ls-java is another emacs mode for java. Yeah, avoid that crap. [07:45]
nullus Advice noted :D [07:46]
mbooth lsp-java uses Eclipse JDT underneath, just use Eclipse ;-) [07:46]
dreamreal yeah, as soon as emacs comes into the mix you know something's gone bad wrong [07:46]
dreamreal using eclipse-jdt is a better approach than jdee but... uh... yeah, just use eclipse in that case. You'll still have an env that sucks compared to IDEA but eh, it's worlds better than NETBEANS. [07:47]
mbooth dreamreal: Netbeans seems to grow its community since leaving Oracle in 2016. Good for them, I suppose :-) [07:48]
dreamreal Well, growing community is better than not, I suppose, but it'd be nice if they made it better too [07:49]
dka I call `<S> S createService(Class<S> serviceClass)`, how can I override (wrap) a method from S programatically ? [07:51]
dreamreal dynproxy [07:51]
dreamreal dreamreal, what does that even *mean*? [07:51]
dreamreal reflection [07:51]
dreamreal dreamreal, reflection is a set of APIs that allow programs to interrogate classes for field and method information. See http://download.oracle.com/javase/tutorial/reflect/index.html [07:51]
dreamreal look up how dynamic proxies work; Heinz Kabutz has an excellent ebook about it (it's short *and* free, I promise) on infoq [07:52]
egnbjork [egnbjork!~egnbjork@193-178-49-47.broadband.tenet.odessa.ua] has joined ##java [07:54]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [07:54]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [07:55]
dka how can I create a new class instance (with method override) in a method ? [07:56]
kirua [kirua!~kirua@unaffiliated/kirua] has joined ##java [07:56]
dreamreal never mind then [07:57]
odinsbane tutorial [07:57]
odinsbane The Oracle tutorial for Java is probably your best starting point, at https://docs.oracle.com/javase/tutorial . Skip the Netbeans bits. Another option: https://www.ktbyte.com/java-tutorial - https://hackr.io/tutorials/java has a list of others as well. [07:57]
odinsbane Runnable r = ()->{ System.out.println( "there are many ways");}; [07:58]
dka I have 'service = smsFactorServiceGenerator.createService(SmsKopaxService.class);' , How can I extend from service ? [07:59]
dka I have tried to add extends to `class MyService implements SmsKopaxService { // the two method of the service } ` but I can't extend from a variable [07:59]
di0_ [di0_!~di0_@unaffiliated/di0-/x-5053590] has joined ##java [07:59]
dreamreal dynproxy is <reply>Dynamic Proxies are, well, proxies in Java; they're a way you can intercept method calls for the proxied class, like a decorator pattern except - as the name suggests - dynamic. See https://www.infoq.com/minibooks/java-dynamic-proxies/ (free ebook) and https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html [08:00]
dreamreal OK, dreamreal. [08:00]
dreamreal probably should convert those to shortlinks but that reduces the information about what they are :/ [08:00]
dreamreal oh, well. You can lead a horse to water but at some point it has to decide to drink. [08:00]
dka I am reading the docs.oracle.com link thanks [08:01]
femtotones [femtotones!audiofile@gateway/vpn/privateinternetaccess/audiofile] has joined ##java [08:04]
johnau [johnau!~johnau@14-200-26-249.tpgi.com.au] has joined ##java [08:08]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [08:08]
odinsbane dka: you can just do new SmsKopaxService(){ ... implement methods }; [08:13]
dreamreal odinsbane: that assumes he knows the type of S concretely, though [08:13]
odinsbane It's an anonymous class. [08:14]
odinsbane What S? [08:14]
dreamreal and by implication of the generics usage, he doesn't know [08:14]
dreamreal dka | I call `<S> S createService(Class<S> serviceClass)`, how can I override (wrap) a method from S programatically ? [08:14]
dreamreal that was his original question [08:14]
odinsbane Ha, I just so the one at 12:56. [08:15]
odinsbane Which sounds like "how do I make an anonymous class." [08:15]
dreamreal sure [08:15]
odinsbane dka This look like get a constructor and return an instance. What are you trying to override? [08:16]
FabioP [FabioP!c378570d@host-195-120-87-13.business.telecomitalia.it] has joined ##java [08:21]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [08:23]
zikani03 [zikani03!~zikani03@41.75.123.113] has joined ##java [08:23]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [08:25]
linext [linext!~linext@pool-100-1-124-176.nwrknj.fios.verizon.net] has joined ##java [08:31]
CookieM [CookieM!~tomek@r-45-155-148-237.gpon.bialnet.pl] has joined ##java [08:33]
Lengsdorfer [Lengsdorfer!~Lengsdorf@unaffiliated/lengsdorfer] has joined ##java [08:37]
Ischwitch [Ischwitch!~Ingvix@2001:999:50:867b:baae:edff:fe7f:87a9] has joined ##java [08:38]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [08:44]
donofrio [donofrio!~donofrio@host-252.subnet-17.med.umich.edu] has joined ##java [09:02]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [09:03]
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java [09:05]
sorressean How can I debug my web traffic in tomcat? I have two war files: foo.war and foo.content.war. foo is making requests to js files in foo.content, and those are returning as 404, but they certainly exist. I'm trying to see why, but catalina.out doesn't show any useful information. This is using Tomcat. [09:05]
wedr [wedr!~tom_mai78@pool-108-20-128-8.bstnma.fios.verizon.net] has joined ##java [09:06]
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java [09:06]
dreamreal Tomcat has an access log and an error log [09:07]
dreamreal that is, if you're using tomcat [09:08]
sorressean dreamreal: I know it prints errors to catalina.out and server.log for container specific errors, but I don't see an actual access.log [09:08]
dreamreal I'd have to look for it, but it should have both [09:08]
sbalmos if it's real Tomcat, it's localhost_access & localhost_error in logs, next to all the rest of them [09:09]
dreamreal it'd have to be tomcat for that, though [09:10]
sorressean I think I heard localhost and skipped past that a couple times. I do see one hit to the access log, but nothing to foo.content, just the initial request. [09:11]
sbalmos well, yes, that seems to be a base assumption. ;) [09:11]
gurrkiin reactive [09:11]
gurrkiin gurrkiin, what does that even *mean*? [09:11]
gurrkiin mono [09:11]
gurrkiin gurrkiin, what does that even *mean*? [09:11]
dreamreal rxjava [09:11]
dreamreal https://github.com/ReactiveX/RxJava , an event-based system for managing Java component interactions. See also ~akka. [09:11]
gurrkiin ty [09:11]
dreamreal mono is <reply>Mono is a pneumopulmonary vir- wait, you're probably talking about the open source implementation of .NET. It's okay; you probably really want the actual .NET engine, but see https://www.mono-project.com/ anyway. [09:12]
dreamreal OK, dreamreal. [09:12]
joev [joev!~joev@72.87.96.154] has joined ##java [09:18]
dreamreal flux [09:18]
dreamreal dreamreal, what does that even *mean*? [09:18]
dreamreal webflux [09:18]
dreamreal dreamreal, what does that even *mean*? [09:18]
dreamreal guh [09:18]
dreamreal gurrkiin: what were you looking for? [09:18]
gurrkiin Is it silly to be mixing old/imperative and reactive code? [09:18]
dreamreal not really a lot of choice, really [09:18]
gurrkiin I was looking for some links on using monos and the like [09:18]
dreamreal oh, that's... not mono at ALL then [09:19]
dreamreal rxjava and akka have a lot of documentation on doing that, in context for those libs. Which reactive lib are you using? [09:19]
gurrkiin webflux [09:20]
dreamreal we need a factoid for that one, too [09:20]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [09:23]
TideFN [TideFN!~TideFN@2601:cb:8001:7d90:1034:92f:332d:55c2] has joined ##java [09:28]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [09:42]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [09:43]
k5__ [k5__!~k5@2001:16b8:2d04:a700:25f4:312c:8985:3e06] has joined ##java [09:43]
whaley [whaley!~whaley@066-169-094-105.res.spectrum.com] has joined ##java [09:45]
zikani03 [zikani03!~zikani03@41.75.123.113] has joined ##java [09:51]
qwedfg_ [qwedfg_!~qwedfg@194.177.28.172] has joined ##java [09:53]
Alina-malina [Alina-malina!~Alina-mal@unaffiliated/alina-malina] has joined ##java [09:53]
Enissay [Enissay!~Enissay@unaffiliated/enissay] has joined ##java [09:55]
idiotkenza_ [idiotkenza_!sid15992@gateway/web/irccloud.com/x-wczmeezjnhodbmtr] has joined ##java [09:57]
puppy_za_ [puppy_za_!sid277586@gateway/web/irccloud.com/x-fivrkfziwmsdirka] has joined ##java [09:57]
pingveno_ [pingveno_!sid269408@gateway/web/irccloud.com/x-akidgnxjkoutwovm] has joined ##java [09:57]
ghormoon_ [ghormoon_!~ghormoon@ghorland.net] has joined ##java [09:57]
madflavor_ [madflavor_!sid99242@gateway/web/irccloud.com/x-uklhvtkxcdwnnbam] has joined ##java [09:57]
jakesyl_ [jakesyl_!sid56879@gateway/web/irccloud.com/x-oefffcmvqxljcnys] has joined ##java [09:57]
fred1807_ [fred1807_!uid305363@gateway/web/irccloud.com/x-tmfhktuwptkgmdqc] has joined ##java [09:57]
Darkfoe_ [Darkfoe_!sid402081@gateway/web/irccloud.com/x-ndrfrdqfchhxigaf] has joined ##java [09:57]
graphicsv_ [graphicsv_!sid340368@gateway/web/irccloud.com/x-tswfqofyoijwydct] has joined ##java [09:58]
Lea2 [Lea2!~learath2@unaffiliated/learath2] has joined ##java [09:58]
Sgeo [Sgeo!~Sgeo@ool-18b982ad.dyn.optonline.net] has joined ##java [10:00]
puppy_za [puppy_za!sid277586@gateway/web/irccloud.com/x-rjjfvcgsjujtwkdv] has joined ##java [10:01]
Lindrian [Lindrian!~Lindrian@unaffiliated/lindrian] has joined ##java [10:03]
fizzie [fizzie!fis@unaffiliated/fizzie] has joined ##java [10:03]
avocado [avocado!renningmat@gateway/shell/matrix.org/x-dstarxfvzjlxvrjx] has joined ##java [10:06]
rhummelmose [rhummelmose!~rhummelmo@2a01:4f8:10b:17d0::2] has joined ##java [10:06]
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java [10:06]
deepy [deepy!deepy@wrongplanet/deepa] has joined ##java [10:07]
kashike [kashike!kashike@unaffiliated/kashike] has joined ##java [10:07]
bendem [bendem!~bendem@irc.bendem.be] has joined ##java [10:07]
Hatsjoe [Hatsjoe!~Hatsjoe@unaffiliated/hatsjoe] has joined ##java [10:07]
Raptors [Raptors!Raptors@2a03:94e0:2102:1442::2441] has joined ##java [10:11]
Inline [Inline!~Inline@2a02:908:1252:7a80:e4ba:7c91:82af:ca81] has joined ##java [10:17]
zikani03 [zikani03!~zikani03@41.75.123.113] has joined ##java [10:23]
trinityblade [trinityblade!~textual@2600:1700:1101:cce0:c09e:1265:e2f3:4c8c] has joined ##java [10:24]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [10:26]
zalt_ [zalt_!~devp@unaffiliated/lambda443] has joined ##java [10:26]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [10:33]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [10:34]
gurrkiin so I have a regular spring web but using webflux - as in it's done completely non-reactively just with webflux behind it. Now I'm adding a piece that needs to use Mono, I can't seem to use a Mono without blocking or returning a response.. Do I need to rewrite things (eg. Controller functions) to be reactive in order to use (publish/subscribe?) a value inside a Mono? [10:41]
gurrkiin (hope that makes sense) [10:41]
afroboy [afroboy!~afroboy@unaffiliated/afroboy] has joined ##java [10:45]
freeone3000 You don't have any tools other than blocking or immediately returning without using the webflux reactive flow because those are the only two options available to normal Java code. [10:45]
gurrkiin aha, i feared that was the case [10:45]
gurrkiin cant block as reactor wont let me [10:46]
gurrkiin big refactorings ahead [10:46]
whaley [whaley!~whaley@066-169-094-105.res.spectrum.com] has joined ##java [10:46]
freeone3000 Servlet3.0 has an alternative async return method based on AsyncContext, but you're gonna have to rewrite bits anyway and if you decided on webflux, might as well keep it consistent. [10:47]
sbalmos ... and ultimately makes no difference unless you queue up stuff in an async queue to the DB layer, or you actually have an async/reactive DB driver [10:48]
gurrkiin not currently, but we plan to move from Oracle to Postgres ...eventually. So I guess it's 'futureproofing' [10:53]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [11:02]
Cahaan [Cahaan!~Cahaan@55.166-245-81.adsl-dyn.isp.belgacom.be] has joined ##java [11:09]
mz| [mz|!~mz@unaffiliated/mz/x-1545692] has joined ##java [11:09]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [11:11]
pressure679 [pressure679!~naamik@194.177.250.82] has joined ##java [11:17]
rymate1234 [rymate1234!~rymate@too.cool.for.ipv4.at.rymate.co.uk] has joined ##java [11:19]
penthief Happy release day. Shame there is no adoptopenjdk 15 available in sdkman for Mac [11:26]
freeone3000 Bring it up to the sdkman team [11:26]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [11:27]
ruurd [ruurd!~ruurd@80-61-78-211.fixed.kpn.net] has joined ##java [11:29]
dreamreal and I find my opinion of sdkman is lowering over time, because of factors they can't control [11:29]
dreamreal OSX relies on /usr/libexec/java and because SDKMan can't change that... it's lessened in value [11:30]
freeone3000 why can't sdkman change that? [11:30]
dreamreal dunno, they say they can't [11:30]
dreamreal I (and others) have filed bugs against it [11:31]
tang^ [tang^!~tang^@2604:3d09:47c:f970:6116:a38c:95bd:ff2a] has joined ##java [11:31]
xekz [xekz!~kexmex@unaffiliated/kexmex] has joined ##java [11:32]
sbalmos more FS-level lockdowns? Maybe /usr/libexec is now root-only with extended ACLs? Spitballing in the wind. [11:39]
dreamreal I dunno, they basically gave me the ol 'WONTFIX [11:39]
freeone3000 It's part of System Integrity Protection but signed binaries can modify it, so ... apply the signed JDK binary directly. [11:41]
dreamreal yeah. Which is what I do, but I'd *prefer* SDKMan's approach. I just can't use it for that. [11:41]
goddard [goddard!goddard@gateway/vpn/privateinternetaccess/goddard] has joined ##java [11:44]
sbalmos sdkman's not signed? [11:46]
mbooth 55 [11:47]
mbooth mbooth, 55 is the class file format version number of class files emitted when using -target 11. You will need Java 11 or higher to run these. [11:47]
freeone3000 sbalmos, sdkman isn't an installer [11:49]
sbalmos argh [11:50]
Jigsy [Jigsy!~Jigsy@unaffiliated/jigsy] has joined ##java [11:50]
grumble Regarding maven best practices: Do I combine my reactor project with my parent project (i.e. the same POM holding <module> definition is the parent for all modules), or do I make the parent project the first module of the reactor project? [11:51]
gelignite [gelignite!~gelignite@55d4c0ea.access.ecotel.net] has joined ##java [11:53]
dreamreal I don't have a LOT of programs that rely on /usr/libexec/java - but two of them are actually important to me, and the third is eclipse [11:55]
mbooth grumble: Really it's preference, I see projects do it both ways [11:56]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [11:56]
mbooth grumble: Note that if your aggregator pom is not the parent for anything, then <properties/> section in the aggregator pom has no meaning (this has got me a couple of times) [11:58]
grumble hm i see, thanks :) [12:00]
mbooth grumble: For added confusion: https://books.sonatype.com/mvnref-book/reference/pom-relationships-sect-pom-best-practice.html [12:07]
mbooth mbooth's title: "TheNEXUS | A Community Project" [12:07]
ScrambledRK [ScrambledRK!~RK@80-110-99-125.cgn.dynamic.surfer.at] has joined ##java [12:11]
LKoen [LKoen!~LKoen@81.255.219.130] has joined ##java [12:14]
murd0c [murd0c!~murd0c@2800:810:492:ee:536:e9c8:bb40:2e5d] has joined ##java [12:14]
freeone3000 [freeone3000!~freeone30@Syncleus/dev/freeone3000] has joined ##java [12:14]
hussam [hussam!uid193284@gateway/web/irccloud.com/x-wtfnwezrkljvhbgt] has joined ##java [12:18]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [12:26]
trinityblade [trinityblade!~textual@2600:1700:1101:cce0:c09e:1265:e2f3:4c8c] has joined ##java [12:28]
magyar [magyar!~magyar@unaffiliated/magyar] has joined ##java [12:28]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [12:34]
upgrdman [upgrdman!~upgrdman@blender/artist/upgrdman] has joined ##java [12:45]
dka Is there a free url shortener with an API? [12:47]
dreamreal depends on your definitions [12:47]
dreamreal and what did google tell you, because when *I* google for it I can easily drown in responses [12:49]
qqqhhh [qqqhhh!5ee450f3@gateway/web/dev0.sh/ip.94.228.80.243] has joined ##java [12:59]
qqqhhh hello is the new "record" feature intended for situations where i want to store many (>20) fields in an immutable object? the constructor ends up having many parameters. or should i have rather an mutable equivalent class which gets used in the record constructor to make a copy? [01:02]
joev [joev!~joev@72.87.96.154] has joined ##java [01:02]
dmlloyd records are too new to really have a comprehensive set of known idioms [01:04]
dmlloyd give it a shot and see how it works out, maybe sharing the pros and cons on a blog post or something [01:04]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [01:06]
kicked yokel (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 2h) [01:06]
palasso [palasso!~palasso@unaffiliated/palasso] has joined ##java [01:11]
very_sneaky [very_sneaky!~very_snea@45.67.96.12] has joined ##java [01:20]
somazero [somazero!~somazero@ip68-229-109-35.hr.hr.cox.net] has joined ##java [01:27]
Atlenohen [Atlenohen!~Walter@cpe2-23-244.cable.triera.net] has joined ##java [01:32]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [01:33]
dqx_ [dqx_!~dqx@unaffiliated/dqx] has joined ##java [01:35]
th_ [th_!~th@unaffiliated/th-/x-5048110] has joined ##java [01:37]
dka I have N times the string `<- short ->` in `message`, I have N string url in `urlList`, how should I loop to replace every placeholder with the appropriate `url` by it's index? [01:38]
freeone3000 dka, .replaceAll() [01:39]
dka that will replace all links. [01:39]
ernimril dka, Matcher.appendReplacement is probably what I would do [01:39]
ernimril dka, in a loop, check its javadoc [01:39]
dka Message `Hello, visit <- short -> and <- short ->` with urlList ['http://bit.ly/1', 'http://bit.ly/2'] should use both urls [01:40]
dka dka's titles: "Warning! | There might be a problem with the requested link" | "Electronics, Cars, Fashion, Collectibles & More | eBay" [01:40]
rippa [rippa!~rippa@ppp-vpdn-37.1.85.157.yarnet.ru] has joined ##java [01:40]
yawkat or use an existing formatting method like messageformat, string.format or stringtemplates [01:41]
yawkat no need to roll your own [01:41]
EgonX [EgonX!~Egon@2601:2c6:47f:87a8:81f7:cc70:2749:b607] has joined ##java [01:44]
bionade24 How can I stop maven from using plugins using package phase that are neither installed nor configured and use the ones in there? [01:48]
sonOfRa what? [01:50]
yawkat show us [01:50]
yawkat 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. [01:50]
mbooth bionade24: Err, why don't you tell us exactly what is actually happening, and what you expect to happen [01:50]
k5__ [k5__!~k5@2001:16b8:2d04:a700:25f4:312c:8985:3e06] has joined ##java [01:51]
bionade24 mbooth: I remvoed serveral standard plugins like maven-jar-plugin and maven-surefire-plugin from the build section and added maven-shade-plugin. Maven still uses those removed ones during package goal and not the added one. [01:52]
mbooth maven-jar-plugin and maven-surefire-plugin are bound to the packaging type "jar" so they will always run unless you explicitly disable their executions [01:53]
sonOfRa yeah, actually show us your pom (especially the <build> section) [01:55]
bionade24 mbooth: And why doesn't shade run? http://ix.io/2xFB [01:56]
sonOfRa <pluginManagement> [01:57]
paddyez [paddyez!~Patrick-E@wikipedia/paddyez] has joined ##java [01:57]
sonOfRa That just manages plugin versions and their configuration for your build. You actually need a <plugins> section so it actually becomes part of that module [01:57]
mbooth bionade24: Because you never invoke it from build/plugins section -- the build/pluginManagement section does not do what you think it does [01:59]
sonOfRa If you have just the one module, just use only <plugins> [01:59]
justache [justache!~justache@unaffiliated/justache] has joined ##java [02:01]
acidjnk_new [acidjnk_new!~acidjnk@p200300d0c736582344bfcff4bb4e671b.dip0.t-ipconnect.de] has joined ##java [02:01]
dreamreal https://blogs.oracle.com/datascience/tribuo-java-machine-learning-library [02:02]
whaley [whaley!~whaley@066-169-094-105.res.spectrum.com] has joined ##java [02:03]
emx [emx!~bemx@2001:1715:4e24:e90:b946:e320:2175:e2af] has joined ##java [02:03]
emx Hi. I'm looking for a way to require two way TLS only for specific endpoints in a spring boot app. Is that possible at all or will server.ssl.client-auth=need secure all connections with two way TLS? [02:05]
bionade24 mbooth: How can I invoke it? [02:06]
sonOfRa I just told you! [02:06]
mbooth bionade24: By adding it to your build/plugins section! [02:06]
sonOfRa emx: that can't work [02:07]
sonOfRa Because TLS authentication happens before you even know the endpoint [02:07]
sonOfRa All you know at the point in time where TLS client auth happens is "this is the hostname the user is connecting to, and this is the port" [02:07]
yawkat i mean the client auth could be optional and then you can restrict requests to only those clients that have it for those endpoints [02:08]
dqx_ [dqx_!~dqx@unaffiliated/dqx] has joined ##java [02:18]
presonic [presonic!~presonic@24-0-237-24.gci.net] has joined ##java [02:18]
Peste_Bubonica [Peste_Bubonica!~Peste_Bub@unaffiliated/peste-bubonica/x-4612396] has joined ##java [02:33]
freeone3000 The sane way of doing it is making it optional, and if a cert isn't supplied, send a 401 which'll prompt the cert to be sent. [02:52]
freeone3000 (unless the user doesn't have certs in their browser for this domain, where it'll trigger a user/pass dialog, but nothing's perfect) [02:53]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [02:57]
asy [asy!~asymptoti@gateway/tor-sasl/asymptotically] has joined ##java [03:00]
sonOfRa The sane way is generally to ask yourself "why am I doing cert auth" [03:00]
justache [justache!~justache@unaffiliated/justache] has joined ##java [03:00]
murd0c [murd0c!~murd0c@2800:810:492:ee:536:e9c8:bb40:2e5d] has joined ##java [03:01]
CombatVet [CombatVet!~c4@gateway/tor-sasl/combatvet] has joined ##java [03:02]
piraye [piraye!~sevilay@109.228.247.78] has joined ##java [03:11]
piraye hello [03:11]
piraye I need nice book of java object-oriented programming? any advice please [03:13]
dreamreal books [03:13]
dreamreal Some good java books are listed at https://javachannel.org/java-books/. Also see ~general books [03:13]
piraye which IDE do you think more appropriate to use? [03:13]
piraye dreamreal, thanks [03:14]
dreamreal IDEs don't really matter, pick eclipse or IDEA [03:14]
sonOfRa start an ide war [03:14]
sonOfRa IDEA kicks the living shit out of JBuilder! [03:14]
sonOfRa Yes, yes it does, javabot. [03:15]
piraye how about NetBeans? [03:15]
Cuckoo pick one that you can use without wasting time fighting with it [03:15]
Cuckoo P [03:15]
piraye haha [03:16]
Bombe piraye, do you have trouble reading? [03:16]
piraye no, why? [03:16]
Bombe Because you keep asking when your question was already answered. [03:16]
dreamreal "You should use one of these two." "how about that third one you didn't mention?" [03:16]
femtotones [femtotones!audiofile@gateway/vpn/privateinternetaccess/audiofile] has joined ##java [03:19]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [03:20]
piraye dreamreal, which of the books is objected oriented programming, also is not there free book? [03:26]
rwheadon [rwheadon!~rwheadon@71-156-76-162.lightspeed.tukrga.sbcglobal.net] has joined ##java [03:29]
cheeser all the java books will be OOPy [03:32]
beatbrot3 [beatbrot3!~beatbrot@p54b2c54a.dip0.t-ipconnect.de] has joined ##java [03:37]
[twisti] google is full of free resources piraye [03:37]
piraye yeah, I know google full of resources, but I thought someone can advice one it is good than others [03:41]
vy [vy!b90ea873@185.14.168.115] has joined ##java [03:41]
[twisti] we can and we did [03:42]
vy Hello! Is the following `Lazy<T>` implementation using double-checked locking correct? https://ideone.com/UrK9M7 Or do I need a `volatile` for `value` as well? (If so, why?) Or something more? [03:42]
cheeser my first question is: why is all the done in an enum? [03:43]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [03:44]
vy cheeser: ideone needs a `Main` class. [03:44]
cheeser but not an enum. that's weird. [03:45]
freeone3000 Looks right. Since initialized is never set to false, you can get away without it being volatile as well, since the synchronized block already imposes a memory barrier. [03:45]
fstd_ [fstd_!~fstd@unaffiliated/fisted] has joined ##java [03:47]
vy freeone3000: I had the same idea, but another friend of mine suggested to have `volatile` for `initialized` to avoid the following reordering: `if (inited) { if (initied) { synchronized ... } }`. I don't know if this is even possible given the semantics of `synchronized`. [03:47]
freeone3000 vy, That order is not possible due to the semantics of sychronized. [03:48]
freeone3000 What volatile guards against is another thread writing a value and your current thread not yet seeing the update. So, several threads may see initialized as false, when it is actually true. This may cause increased lock contention, but will not cause bad behavior, as your double-locking scheme appropriately takes this into account. [03:49]
vy freeone3000: If we wouldn't have any `volatile`s, while the assignment of `value` and `initialized` are guaranteed to be in order as expected, what about the partial initialization of the supplied instance? That is, doesn't this suffer from the issue mentioned in [03:49]
vy https://www.infoworld.com/article/2074979/double-checked-locking--clever--but-broken.html [03:49]
dreamreal vy: why are you trying to do this, what are you trying to accompish [03:50]
dreamreal if you're trying to outsmart the compiler, don't. You'll lose. So would I. So would pretty much everyone else in the channel. [03:50]
vy dreamreal: Provide a wrapper for lazy initialization. -- for Java 8 apps. [03:50]
dreamreal The only way to look smarter here is to not try, because it's already won. [03:51]
dreamreal Provide a wrapper HOW? [03:51]
vy dreamreal: That is my question. [03:51]
freeone3000 vy, Uh, the problem in the article is just sort of a behavior and not really a problem [03:51]
dreamreal I mean... how would you express it at ALL? static T instance =new T(); // done [03:52]
cheeser if construction of the lazy resource is cheap/idempotent i'd use a CHM and computeIfAbsent() [03:52]
dreamreal why even bother delaying it at all, really? [03:52]
cheeser then if you manage to simultaneously create 2 or 3 who cares? [03:52]
vy freeone3000: What about the following remark: "Suppose thread A has completed initializing the `Resource` and exits the synchronized block as thread B enters `getResource()`. Now the `Resource` is fully initialized, and thread A flushes its local memory out to main memory. The `resource`'s fields may reference other objects stored in memory through [03:54]
vy its member fields, which will also be flushed out. While thread B may see a valid reference to the newly created `Resource`, because it didn't perform a read barrier, it could still see stale values of `resource`'s member fields." [03:54]
dreamreal vy: have you seen a problem? [03:55]
dreamreal asking for a friend [03:55]
dmlloyd just FYI, the JMM isn't actually specified in terms of "read barriers" and so forth [03:55]
dmlloyd that's just one possible implementation [03:55]
freeone3000 You may not ever see a problem. The behavior described there is that if you create a resource inside a memory fence, then access that resource outside of a memory fence, then some or all of the parts of the object constructed aren't necessarily themselves constructed. This is a possible outcome. [03:56]
vy dreamreal: What do you mean? Like did I encounter an issue with it on pro? [03:56]
dreamreal vy: sure [03:56]
dreamreal like this sounds like you're being aggressively defensive toward a problem that nobody encounters any more except people who do stupid stuff [03:57]
dmlloyd maybe read this instead: https://shipilev.net/blog/2016/close-encounters-of-jmm-kind/ [03:57]
dmlloyd dmlloyd's title: "Close Encounters of The Java Memory Model Kind" [03:57]
freeone3000 volatile doesn't fix this. nothing fixes this short of always accessing this object after a memory fence -- same as *anything else*. a constructor should be treated like a mutable change. [03:57]
vy dreamreal: I am not trying to justify the need, just trying to understand. I can indeed ditch this code off and replace it with static holder idiom, etc. [03:58]
freeone3000 easy way to always access it inside a memory fence? remove the outer 'if' of a double-locking scheme. [03:58]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [04:00]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [04:08]
acidjnk_new2 [acidjnk_new2!~acidjnk@p200300d0c73658171887db1a128e4af1.dip0.t-ipconnect.de] has joined ##java [04:16]
DTZUZU [DTZUZU!~DTZUZU@205.ip-149-56-132.net] has joined ##java [04:27]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [04:29]
perrier-jouet [perrier-jouet!~perrier-j@modemcable012.251-130-66.mc.videotron.ca] has joined ##java [04:33]
immibis [immibis!~immibis@x2e722671.dyn.telefonica.de] has joined ##java [04:42]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [04:44]
sb35 [sb35!~sb35@68.168.122.242] has joined ##java [04:49]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [04:50]
wodencafe [wodencafe!wodencafe@woden.cafe] has joined ##java [04:56]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [04:57]
mindCrime [mindCrime!~prhodes@2606-a000-112a-8159-ea44-563a-99f1-db26.inf6.spectrum.com] has joined ##java [05:01]
pikapika [pikapika!~pikapika@pika.powered.by.lunarbnc.net] has joined ##java [05:02]
xerov [xerov!~median@178.62.241.106] has joined ##java [05:04]
runlevel7 [runlevel7!~runlevel7@unaffiliated/runlevel7] has joined ##java [05:08]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [05:19]
Brklyn [Brklyn!~jaimefull@207-38-185-49.s2351.c3-0.nyr-cbr2.nyr.ny.cable.rcncustomer.com] has joined ##java [05:23]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [05:25]
Brklyn Hi all quick question.... I have a String foo and String[] bar attibutes for a class, and I'm writing a custom hashCode(). I would like to call java.util.Objects.hashCode(foo, bar...) if that makes sense (ie. hashCode(foo, bar[0], bar[1],..., bar[n]), hashCode(foo, bar) isn't hashing the elements in bar which is what I'd like, we call this relatively often so I'd like to avoid an allocation if possible. Any [05:27]
Brklyn hints/ideas? [05:27]
ernimril Brklyn, Objects.hash(foo) * <someValue> + Objects.hash(bar) [05:29]
ernimril Brklyn, pick a suitable value and you are done [05:29]
Brklyn OK, so that's similar to what I was doing, only I was just adding dumbly [05:30]
ernimril Brklyn, Objects.hash(Object[]) uses the same hash as List, so for that case someValue=31 [05:31]
Brklyn That's perfect, thank you ernimril [05:32]
LKoen [LKoen!~LKoen@81.255.219.130] has joined ##java [05:47]
kupi [kupi!uid212005@gateway/web/irccloud.com/x-vakcawmnzejnyupl] has joined ##java [05:53]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [05:53]
reynir [reynir!~reynir@unaffiliated/reynir] has joined ##java [06:01]
g00s [g00s!~g00s@unaffiliated/g00s] has joined ##java [06:07]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [06:17]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [06:29]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [06:31]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [06:37]
yokel [yokel!~yokel@unaffiliated/contempt] has joined ##java [06:41]
kicked yokel (Banned: please fix your connection. you're bouncing in and out. this ban will expire after 1d) [06:41]
systemhalted [systemhalted!~aqualogic@71-129-231-253.lightspeed.rcsntx.sbcglobal.net] has joined ##java [06:44]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [06:49]
vngx [vngx!~vngx@c-73-33-132-63.hsd1.nj.comcast.net] has joined ##java [06:51]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [06:57]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [07:06]
Azrael_- [Azrael_-!~aweoi@51.154.62.124] has joined ##java [07:09]
beatbrot38 [beatbrot38!~beatbrot@p54b2c7c9.dip0.t-ipconnect.de] has joined ##java [07:13]
Azrael_- [Azrael_-!~aweoi@51.154.62.124] has joined ##java [07:19]
Inline [Inline!~Inline@aftr-37-201-195-196.unity-media.net] has joined ##java [07:38]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [07:47]
llorllale [llorllale!~llorllale@2607:9880:1078:46:f8e4:b888:b4a6:2b63] has joined ##java [07:53]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [07:59]
fncapkle [fncapkle!~sb35@68.168.122.243] has joined ##java [07:59]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [08:14]
plarsen [plarsen!~plarsen@redhat/jboss/pdpc.professional.plarsen] has joined ##java [08:26]
dfee [dfee!~dfee@162-227-164-101.lightspeed.sntcca.sbcglobal.net] has joined ##java [08:26]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [08:36]
linext [linext!~linext@pool-100-1-124-176.nwrknj.fios.verizon.net] has joined ##java [08:36]
mirrorbird [mirrorbird!~psutcliff@h85-8-41-6.cust.a3fiber.se] has joined ##java [08:44]
hypc1 [hypc1!~Thunderbi@113.233.199.240] has joined ##java [08:46]
StevePerkins [StevePerkins!~StevePerk@2600:1700:2980:9b00:1579:a0fc:2a4b:1a90] has joined ##java [09:01]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [09:05]
hypc [hypc!~Thunderbi@113.233.199.240] has joined ##java [09:11]
acidjnk_new2 [acidjnk_new2!~acidjnk@p200300d0c73658171887db1a128e4af1.dip0.t-ipconnect.de] has joined ##java [09:13]
db [db!uid18678@gateway/web/irccloud.com/x-xomcssmwcrfdzjzu] has joined ##java [09:24]
StevePerkins [StevePerkins!~StevePerk@2600:1700:2980:9b00:1579:a0fc:2a4b:1a90] has joined ##java [09:31]
AMcBain [AMcBain!~Art@071-085-028-052.res.spectrum.com] has joined ##java [09:33]
p[a]ddy [p[a]ddy!~Patrick-E@wikipedia/paddyez] has joined ##java [10:01]
johnau [johnau!~johnau@14-200-26-249.tpgi.com.au] has joined ##java [10:11]
KidBeta [KidBeta!~Kidbeta@hpavc/kidbeta] has joined ##java [10:43]
Sheilong [Sheilong!uid293653@gateway/web/irccloud.com/x-tngvcdovsafvyxmh] has joined ##java [10:49]
LionBar [LionBar!~l@gateway/tor-sasl/lionbar] has joined ##java [11:12]
zacts [zacts!~zacts@dragora/developer/zacts] has joined ##java [11:37]
TacoCodedSalad [TacoCodedSalad!~smallvill@cpe-172-193-147-209.qld.foxtel.net.au] has joined ##java [11:44]