Browsing 7239 questions and answers with Jon Skeet
The only type of package modifier in the JLS is an annotation. From JLS 7.4.1: PackageDeclaration: {PackageModifier} package Identifier {. Identifier} ; PackageModifier: Annotation So public package foo; is invalid... more 9/3/2014 12:31:26 PM
If you look at the Consumer<T> interface, the accept method (which is what your method reference would effectively be using) isn't declared to throw any checked exceptions - therefore you can't use a method reference which is... more 9/3/2014 11:47:13 AM
I am saving the hash of the product properties object in database for change tracking. Don't do that. That's pretty much the definition of requiring the hash code to be stable over time. AppDomains are pretty irrelevant to this, to be... more 9/3/2014 11:36:17 AM
You passed the pointer by value - but that's just a pointer. That says where the memory containing the individual values is. Your make5 function doesn't actually change the value of the parameter (d) at all - that would be something... more 9/3/2014 6:07:46 AM
It's easiest if you have the jar files visible in the package explorer to start with, i.e. within your project directory. At that point, you can just right-click on the jar file, go to the "Build path" section of the context menu, then... more 9/3/2014 5:51:48 AM
I suspect this is the problem - it's at least one problem: .Join(data.BQItems, x => new { x.a.UPCCode, x.b.Location }, y => new { y.UPC_Code, y.Location }, ...) You're trying to join using... more 9/2/2014 7:11:19 PM
This is a custom numeric format string, basically - but a pretty odd one, to be honest. In fact, it's two of them: #;; records;no records;record In each case, you've got three sections, due to having two section separators (the... more 9/2/2014 4:39:33 PM
The enhanced for loop does an empty check before it starts to do anything right? No, I wouldn't expect it to. I'd expect it to just create the iterator, which then won't find anything. That's what JLS 14.14.2 describes, anyway: ... more 9/2/2014 2:19:25 PM
Assuming you mean Pacific Time, you can use my Noda Time project for this, assuming that DateTime works correctly in terms of the the local conversion. // Initial conversion using BCL classes DateTime local = ...; DateTime utc =... more 9/2/2014 6:23:50 AM
The java.lang.invoke package was introduced in Java 7. As your mvn version command shows, Maven is using Java 6: Java version: 1.6.0_65, vendor: Apple Inc. Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home You... more 9/1/2014 9:19:34 PM