Log of the #nice channel on irc.freenode.net

Using timezone: Central European Time
* arjanb leaves01:37
* bonniot joins07:36
DRMacIver, Hi, did you find out how javac compiles varargs?07:37
<DRMacIver>I didn't, no. Everyone else seems to think that it treats the two forms identically (which is also what the decompiler says), despite experiments to the contrary.09:56
It's very confusing.
<bonniot>you should use javap or equivalent. a decompiler might ignore some parts09:57
i guess javac is adding an annotation09:58
<DRMacIver>Ah, hang on.
javap does indeed ignore annotations.
(I just ran a quick test to verify this)
Yeah, I was using javap as well.09:59
<bonniot>decompiler to mean means targeting source code, like bytecode -> java
ok, so that's fine
<DRMacIver>True. Disassembler then. :)
<bonniot>except if it doesn't show annotations...10:00
right ;-)
<DRMacIver>(I was using a decompiler previously as I can't read bytecode, but then switched to javap because I thought it would be more reliable)10:01
<bonniot>bytecode is actually quite close to java ;-)10:02
<DRMacIver>It's probably possible to use APT to investigate the annotations on a class, but I don't know how.
Yeah, I know. I just haven't gotten aroudn to learning the differences.10:03
<bonniot>tried javap -verbose?
<DRMacIver>Still no diff between the two.10:05
If the annotation had runtime retention I could take a look at it reflectively, but I bet it doesn't.
<bonniot>you should try another disassembler. javap is not great10:07
<DRMacIver>Any you recommend?10:09
* DRMacIver just used javap because it came with java so he had it to hand. :)
<bonniot>you can try gnu.bytecode.dump, should be in the nice tree. or google ;-)10:17
<DRMacIver>Well I've been googling. It's full of decompilers and disassemblers, most of which are really rubbish. I had this problem when I was looking for a decompiler. :)10:18
I'll try the bytecode dump10:20
* arjanb joins16:32
* bonniot leaves20:29
* bonniot joins20:35
* bonniot leaves23:15
* arjanb leaves00:04