Hi,

I was trying to upgrade to jooq 3.7.1 from jooq 3.6.2 and am using eclipse 
Mars.1 Release (4.5.1).

I have a line of code that looks like.

final SelectSelectStep<Record> selectSelectStep = useSelectDistinct ? 
dslContext.selectDistinct(selectFields) : dslContext.select(selectFields);

Eclipse is reporting a warning 

Resource leak: 'selectSelectStep' is never closed.

I tried a few variations

final SelectSelectStep<Record> selectDistinctStep = dslContext.
selectDistinct(selectFields); //no warning
final SelectSelectStep<Record> selectNonDistinctStep = dslContext.select(
selectFields); // no warning
final SelectSelectStep<Record> selectSelectStep = useSelectDistinct ? 
dslContext.selectDistinct(selectFields) : dslContext.select(selectFields); // 
eclipse warning


On the face of it seems like a bug/false positive in the eclipse static 
analysis.

Has anyone else seen this?

Thanks,
Gokul.

-- 
You received this message because you are subscribed to the Google Groups "jOOQ 
User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to