Skip to content

Commit

Permalink
Merge branch 'jruby-9.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed May 21, 2018
2 parents bae5d69 + 9d6f877 commit 3b228b2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion core/src/main/java/org/jruby/RubyIO.java
Expand Up @@ -4386,7 +4386,6 @@ public static IRubyObject copy_stream(ThreadContext context, IRubyObject recv, I
// ignore EOF, reached end of input
return context.runtime.newFixnum(size);
} catch (IOException ioe) {
ioe.printStackTrace();
throw runtime.newIOErrorFromException(ioe);
} finally {
if (userProvidedReadIO) {
Expand Down
13 changes: 12 additions & 1 deletion core/src/main/java/org/jruby/util/RubyDateFormatter.java
Expand Up @@ -51,8 +51,11 @@
import org.joda.time.DateTime;
import org.joda.time.chrono.GJChronology;
import org.joda.time.chrono.JulianChronology;
<<<<<<< HEAD
import org.jruby.Ruby;
import org.jruby.RubyNumeric;
=======
>>>>>>> jruby-9.1
import org.jruby.RubyString;
import org.jruby.RubyTime;
import org.jruby.lexer.StrftimeLexer;
Expand All @@ -79,7 +82,7 @@ public class RubyDateFormatter {
private final Ruby runtime;
private final StrftimeLexer lexer;

static enum Format {
enum Format {
/** encoding to give to output */
FORMAT_ENCODING,
/** raw string, no formatting */
Expand Down Expand Up @@ -240,7 +243,15 @@ public String toString() {
*/
public RubyDateFormatter(ThreadContext context) {
super();
<<<<<<< HEAD
this.runtime = context.runtime;
=======
this.context = context;
// FIXME: Java does not seem to initialize the enum values until the first one is accessed but during
// construction of enum values we set the enum values into a static array. We look at that static array
// before we formally reference a Format. The following line will work around this by forcing enum loading...someone change this code :P
Format staticInitializerHack = Format.FORMAT_SPECIAL;
>>>>>>> jruby-9.1
lexer = new StrftimeLexer((Reader) null);
}

Expand Down
4 changes: 2 additions & 2 deletions install/jruby.install4j
Expand Up @@ -1463,7 +1463,7 @@ return console.askYesNo(message, true);
</styles>
</installerGui>
<mediaSets>
<windows name="Windows" id="20" customizedId="" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" installDir="jruby-${compiler:sys.version}" overridePrincipalLanguage="false" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="c:" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows" id="20" customizedId="" mediaFileName="${compiler:sys.shortName}_${compiler:sys.platform}_${compiler:sys.version}" installDir="jruby-${compiler:jruby.version}" overridePrincipalLanguage="false" jreBitType="32" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="c:" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers />
Expand All @@ -1480,7 +1480,7 @@ return console.askYesNo(message, true);
<customAttributes />
</autoUpdate>
</windows>
<windows name="Windows 64-bit" id="24" customizedId="" mediaFileName="${compiler:sys.shortName}_windows_x64_${compiler:sys.version}" installDir="jruby-${compiler:sys.platform}" overridePrincipalLanguage="false" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="c:" contentFilesType="1" verifyIntegrity="true">
<windows name="Windows 64-bit" id="24" customizedId="" mediaFileName="${compiler:sys.shortName}_windows_x64_${compiler:sys.version}" installDir="jruby-${compiler:jruby.version}" overridePrincipalLanguage="false" jreBitType="64" runPostProcessor="false" postProcessor="" failOnPostProcessorError="false" useLegacyMediaFileIds="false" legacyMediaFileIds="" downloadURL="" includeAllDownloadableComponents="false" includedJRE="" manualJREEntry="false" bundleType="1" jreURL="" jreShared="false" directDownload="false" installOnlyIfNecessary="false" customInstallBaseDir="c:" contentFilesType="1" verifyIntegrity="true">
<excludedComponents />
<includedDownloadableComponents />
<excludedLaunchers />
Expand Down

0 comments on commit 3b228b2

Please sign in to comment.