Skip to content

Instantly share code, notes, and snippets.

View stepancheg's full-sized avatar

Stepan Koltsov stepancheg

View GitHub Profile
java.lang.AssertionError: com.intellij.openapi.vfs.InvalidVirtualFileAccessException: Accessing invalid virtual file: temp:///src/AnonymousInitializers.jet
at org.jetbrains.jet.completion.JetCompletionTestBase.doTest(JetCompletionTestBase.java:83)
at org.jetbrains.jet.completion.JetBasicCompletionTest.testBasicAny(JetBasicCompletionTest.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at com.intellij.testFramework.UsefulTestCase.access$001(UsefulTestCase.java:68)
at com.intellij.testFramework.UsefulTestCase$2.run(UsefulTestCase.java:237)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:1710)
#!/bin/zsh -e
while :; do
for d in jet jet-fixed; do
echo
echo
echo
echo
echo
date
/*
* Copyright 2010-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
commit 41b6b4ef0ec11fdd9adec8fde73f176b938e865d
Author: Stepan Koltsov <[email protected]>
Date: Mon Jan 16 16:55:00 2012 +0400
refactor java descriptor resolver
diff --git a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
index 80c8b72..636682c 100644
--- a/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
+++ b/compiler/frontend.java/src/org/jetbrains/jet/lang/resolve/java/JavaClassMembersScope.java
find . -name '*.java' | xargs cat | awk '{ print length($0) }' | sort | uniq -c | sort -n -k 2
44036 0
5023 1
31575 2
20764 3
32061 4
3477 5
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.ComponentScanConf#0': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.mycompany.Bbbbb com.mycompany.ComponentScanConf.bbbbb; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.mycompany.Bbbbb] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
at org.springframework.b
Unexpected
at pos=8. Expected T.
android.text.format.Time.nativeParse(Native Method)
android.text.format.Time.parse(Time.java:415)
com.hypermatix.ical.CalendarWrapper.getTimeMillis(CalendarWrapper.java:169)
com.hypermatix.ical.CalendarWrapper.getTimeMillis(CalendarWrapper.java:151)
com.hypermatix.app.CalendarSync.CSCalendarUtility.createEvent(CSCalendarUtility.java:165)
com.hypermatix.app.CalendarSync.CSSyncThread.checkForServerUpdate(CSSyncThread.java:802)
com.hypermatix.app.CalendarSync.CSSyncThread.ETag(CSSyncThread.java:714)
com.hypermatix.app.CalendarSync.CSMultiStatusParser.endElement(CSMultiStatusParser.java:72)
size_t memspn(const char* s, size_t len, const char* charset) {
for (size_t i = 0; i < len; ++i) {
bool found = false;
for (const char* p = charset; *p != 0; ++p) {
if (s[i] == *p) {
found = true;
break;
}
}
if (!found)
#include <stdlib.h>
#include <time.h>
static int __my_func_impl_1() {
return 44;
}
static int __my_func_impl_2() {
return 55;
}
#include <stdint.h>
#include <stdio.h>
#include <sys/mman.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int firstVersion(int param) {
printf("!%d\n", param);
return param;