Skip to content

Instantly share code, notes, and snippets.

View DHager's full-sized avatar

Darien DHager

  • Seattle, WA
View GitHub Profile
@DHager
DHager / OverridablePropertiesConfiguration.java
Created June 17, 2011 01:59
Overrides behavior on Apache commons-configuration so that the property-file include mechanism "overwrites" older values
package com.technofovea.springtest;
import java.io.File;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.Collection;
import java.util.Iterator;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
@DHager
DHager / ErrorCase.java
Created March 26, 2011 01:09
FileChannel bug in Sun's code
package com.technofovea.packbsp;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.channels.FileChannel;
/**
* This quick test shows a bug in the SUN/Oracle FileChannel class.
*