Browsing 7239 questions and answers with Jon Skeet
I suspect this is the problem: <attribute name="Main-Class" value="Main"/> It should be: <attribute name="Main-Class" value="com.cfsware.osco.test.Main"/> ... in other words, the fully-qualified name of the class. Your... more 9/19/2014 2:45:42 PM
I suspect you're looking for IBM code page 437. (There may well be others that encode the same character in the same way, of course.) Whether a particular Java implementation knows about it or not is very implementation-specific though...... more 9/19/2014 1:08:52 PM
Is there a way I can create my an IEquailityComparer for my anonymous types? Sure. You just need to use type inference. For example, you could have something like: public static class InferredEqualityComparer { public static... more 9/19/2014 12:59:46 PM
Not everything that's supported in the BCL has a direct equivalent in SQL. Given that this is the final part of the query, the simplest approach would be to just write a query which fetched all the data you need without rounding etc, and... more 9/19/2014 12:30:35 PM
You would need to cast the result of list.get(0) - the compiler is complaining because List<ClientInfo>.get(...) will definitely return a reference to a ClientInfo-compatible object (or null), but it might not be a... more 9/19/2014 10:13:55 AM
You're ignoring the result of countRec() - and you're iterating within the recursive call, defeating the purpose. (You're also making a recursive call on the same object, with no parameters and no change in state... so that can't do any... more 9/19/2014 6:19:03 AM
If you're just trying to check whether any value matches the predict, you can use anyMatch: Returns whether any elements of this stream match the provided predicate. May not evaluate the predicate on all elements if not necessary for... more 9/19/2014 6:07:44 AM
Yes, the instance of the inner class will be eligible for GC. The inner class instance has a reference to the instance of the containing class instance, not the other way round. more 9/18/2014 2:09:20 PM
I suspect the problem is that you're using AuthorizeAsync(...).Result. Using the Result property blocks the current thread... and I suspect that ASP.NET is trying to schedule the continuation (when authentication completes) in the same... more 9/18/2014 1:58:30 PM
Why isn't the compiler satisfied that instance.getClass() will always produce Class (since instance is of type T) and requires an explicit cast instead? Consider this: A<Object> a = new A<Object>("Foo"); Calling... more 9/18/2014 1:39:37 PM