jyotiverma0310 / burningimage

Automatically exported from code.google.com/p/burningimage
0 stars 0 forks source link

ScaleType not equals with different ClassLoaders #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ScaleType Enum loaded from config sometimes with different ClassLoader

What is the expected output? What do you see instead?
ScaleType.APPROXIMATE == ScaleType.APPROXIMATE, but they are not equal

What version of the product are you using? On what operating system?
0.5.0

Please provide any additional information below.
ImageUploadService:
    ...

    private def scaleImage = {image, params ->

        println params.type.getClass().getClassLoader()
        println ScaleType.ACCURATE.getClass().getClassLoader() 

if they are different same ScaleTypes are not equal

Original issue reported on code.google.com by denis.mo...@gmail.com on 15 Oct 2010 at 11:38